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. Can anybody send me the java full code for sending
View Tutorial          By: David at 2010-08-22 22:57:38

2. very cool you said it! many thanks it's really coo
View Tutorial          By: ArAsh at 2008-12-11 06:41:13

3. this is really helpful example for Learning RMS in
View Tutorial          By: Ahmed Nawaz Mari at 2011-06-30 05:29:18

4. I am getting this exeception when trying to send m
View Tutorial          By: praveen at 2012-12-27 11:15:14

5. when i trying this code . i am getting this error<
View Tutorial          By: sharath at 2010-04-06 00:58:29

6. "If you enter zero, the assert() macro forces
View Tutorial          By: czx at 2010-09-17 07:23:20

7. thanx a lot.............!!!! u r best..........
View Tutorial          By: Pratik at 2010-04-12 12:41:30

8. Hello
I need some one send me runnable cod

View Tutorial          By: Ahmed Ghazey at 2010-08-09 01:55:48

9. hi.. all.. its working fine for me... thank u ver
View Tutorial          By: Padmaraj at 2009-04-01 09:42:29

10. someone explain how to use PreparedStatements with
View Tutorial          By: Manikprabhu at 2011-03-26 00:04:54