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



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. good one
View Tutorial          By: saurabh at 2012-01-17 04:43:29

2. Dude, that LOOP wont work i cant even understand w
View Tutorial          By: Rohan at 2012-02-16 17:04:06

3. i need the code
View Tutorial          By: C.Ajith Franklin at 2010-05-05 06:04:40

4. it's good and very best
View Tutorial          By: rushikesh at 2014-02-04 11:28:42

5. Impressing answer guys...
View Tutorial          By: Jayeeta Pal at 2011-06-28 03:18:26

6. this code is very and help in our project BUT
View Tutorial          By: bhamre sandeep at 2010-02-28 03:02:53

7. Good Example esp. way it was presented.
View Tutorial          By: Arunlal at 2013-06-20 11:56:43

8. I am using VS2010 & SAP for crystal report. I
View Tutorial          By: Abdullah Al Mamun at 2011-08-11 23:20:37

9. Hi Sr,
I am doing u r program. I got error

View Tutorial          By: Dineshram P at 2011-09-06 14:11:00

10. Hi it is working fine .but when my server we imple
View Tutorial          By: mohan at 2014-11-28 10:57:22