wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes about strictfp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "about strictfp" Watch "about strictfp" New topic
Author

about strictfp

Kavitha R ram
Greenhorn

Joined: Aug 17, 2006
Posts: 5
hi,
Anybody can explain about strictfp. i didnt get the exact definition.

Thanks in Advance
Praveen Babu
Ranch Hand

Joined: Jul 30, 2006
Posts: 138
Hi Kavitha,

It is used on classes or methods for floting point arithmetic.If this is specified then the resulting numbers are same on all platforms, since by typing the keyword strictfp we are saying the compiler to adhere to a specification namely the IEEE-754 standard.

However there is a catch. If your platform supports a higher precession then you have to sacrifice it.

Regards
Praveen
[ August 22, 2006: Message edited by: praveen babu ]
wise owen
Ranch Hand

Joined: Feb 02, 2006
Posts: 2023
http://www.javaranch.com/certfaq.jsp#q15
 
GeeCON Prague 2014
 
subject: about strictfp