[3952] in java-interest
Controlling precision in floats/doubles
daemon@ATHENA.MIT.EDU (Suresh Srinivasan)
Tue Dec 5 14:08:58 1995
Date: Tue, 5 Dec 1995 10:30:58 -0500
From: suresh@thomtech.com (Suresh Srinivasan)
To: java-interest@java.sun.com
Hi all,
This should be easy but I couldn't find it in the docs.
Is there an easy way to control the number of digits
of precision for floats and doubles, analogous to C's
printf("%0.2f") for example? I need this facility
for a variety of purposes from System.out.print to
setting the text of a Label.
Thanks!
--Suresh
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com