Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on strictfp within the Java forums, part of the Software Development category; For what purpose strictfp keyword is used in java?...
|
|||||||
|
|||
|
Re: strictfp
Hi Sarje,
The keyword strictfp allows u to have more (predictable) control over floating-point arithmetic. Strictfp ensures that u get exactly the same results from u r floating point calculations on every platform. U can use strictfp as a modifier of class, interface, and method declarations, like.. strictfp interface A {} public strictfp class geek { strictfp void f() {} } Thanks, Riju. |
|
|||
|
Hi,
strictfp keyword is used in java to ensure that the JVM follows IEEE 754 standard for floating point arithmetic If this keyword is not used then presion of result of floating point arithmetic is depends upon the JVM. Thanks & Regards, Abhijit |
| The Following User Says Thank You to abhi981 For This Useful Post: | ||
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|