Comment on Tutorial - strictfp in Java 2 By Baski



Comment Added by : Jeff

Comment Added at : 2011-02-02 23:05:17

Comment on Tutorial : strictfp in Java 2 By Baski
Hello,
I would like to know how will take place rounding of value in case of strictfp
Say I have
float f = 1.2351111f;
and round it in second digit after dot.
System.out.println(String.format("%1.2f", f));
in case of strictfp and without strictfp it prints
1.24


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. super explanation
View Tutorial          By: pree at 2013-12-30 16:41:32

2. hiiiii
View Tutorial          By: hiiiiii at 2010-07-28 14:08:50

3. output is not specified there.., it must should be
View Tutorial          By: yash at 2014-09-17 16:35:52

4. i want to make java editore in my major project.i
View Tutorial          By: pawan patel at 2012-04-14 11:15:19

5. Thank You So Much ^,^
I get rid of that err

View Tutorial          By: moji junk at 2009-02-24 07:48:19

6. Nothing that hasn't been said before, but I wasn't
View Tutorial          By: Calvin at 2010-03-22 20:43:10

7. Thanks Steven, That is an exhaustive list of diffe
View Tutorial          By: Robert at 2008-12-08 22:17:47

8. a bit extra information on robust
View Tutorial          By: mahesh at 2010-02-02 12:05:37

9. Nice example for FileReader and FileWriter,

View Tutorial          By: Tim at 2009-10-21 17:31:00

10. we are getting an error saying that " the sta
View Tutorial          By: chaitra at 2014-03-20 10:53:02