Eraserhead macrumors G4 Original poster Nov 3, 2005 10,434 12,250 UK Aug 6, 2006 #1 Is it possible to format output to a text file from Java (ie limiting the number of decimal places shown of numbers.) in a similar way to using printf to print formatted text on the screen.
Is it possible to format output to a text file from Java (ie limiting the number of decimal places shown of numbers.) in a similar way to using printf to print formatted text on the screen.
HiRez macrumors 603 Jan 6, 2004 6,310 2,752 Western US Aug 6, 2006 #2 Use the NumberFormat class with its format() method to output to your file stream.