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. Excellent
View Tutorial          By: Jaleel at 2009-10-16 23:22:52

2. hi and thanks for this good example , i want ask i
View Tutorial          By: Maryam at 2011-12-17 11:19:07

3. Thanks heaps, I had the file already there but it
View Tutorial          By: Jb at 2009-05-14 08:13:08

4. Nice Work... Keep it..
View Tutorial          By: Ashok at 2010-02-28 05:12:31

5. i want to learn j2me basic to ....
View Tutorial          By: gopiraj at 2012-12-21 11:52:01

6. Explanation was good and easily comprehendable.
View Tutorial          By: Moin Adil at 2009-06-17 04:18:56

7. This is very useful article with clear understandi
View Tutorial          By: Manu Manker at 2014-03-14 05:49:26

8. A good and useful tutorial for beginners.
t

View Tutorial          By: Hayk at 2010-01-12 10:55:15

9. frnds i need overriding concept in bubble sort
View Tutorial          By: rabbu at 2014-08-21 12:46:52

10. give the picture view of connecting vb.net with my
View Tutorial          By: Murugamani at 2014-09-09 06:12:58