This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes strictfp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "strictfp" Watch "strictfp" New topic
Author

strictfp

Rajani kanth Pandiri
Greenhorn

Joined: Jan 28, 2006
Posts: 13
what is strictfp in java.lang.Math. please explain me with one example.
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

strictfp is a modifier that can be applied to interfaces, classes, and methods. Basically, strictfp ensures consistent floating point behavior across different platforms by restricting all intermediate values to fit into the range of float or double.

A technical explanation is here (in the Java Language Specification).


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
 
wood burning stoves
 
subject: strictfp