Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here are several references:</p> <ul> <li><a href="http://java.sun.com/developer/JDCTechTips/2001/tt0410.html#using" rel="noreferrer">Using strictfp</a> (JDC Tech Tip)</li> <li><p>jGuru: <a href="http://www.jguru.com/faq/view.jsp?EID=17544" rel="noreferrer">What is the strictfp modifier for? When would I consider using it?</a></p> <blockquote> <p>Basically, what it all boils down to is whether or not you care that the results of floating-point expressions in your code are fast or predictable. For example, if you need the answers that your code comes up with which uses floating-point values to be consistent across multiple platforms then use <code>strictfp</code>.</p> </blockquote></li> <li><p><a href="http://mindprod.com/jgloss/strictfp.html" rel="noreferrer">strictfp - Java Glossary</a> </p> <blockquote> <p>Floating point hardware calculates with more precision, and with a greater range of values than the Java specification requires. It would be confusing if some platforms gave more precision than others. When you use the <code>strictfp</code> modifier on a method or class, the compiler generates code that adheres strictly to the Java spec for identical results on all platforms. Without <code>strictfp</code>, is it is slightly laxer, but not so lax as to use the guard bits in the Pentium to give 80 bits of precision.</p> </blockquote></li> <li><p>And finally the actual Java Language Specification, <a href="http://java.sun.com/docs/books/jls/third_edition/html/expressions.html#249198" rel="noreferrer">§15.4 FP-strict Expressions</a>: </p> <blockquote> <p>Within an FP-strict expression, all intermediate values must be elements of the float value set or the double value set, implying that the results of all FP-strict expressions must be those predicted by IEEE 754 arithmetic on operands represented using single and double formats. Within an expression that is not FP-strict, some leeway is granted for an implementation to use an extended exponent range to represent intermediate results; the net effect, roughly speaking, is that a calculation might produce "the correct answer" in situations where exclusive use of the float value set or double value set might result in overflow or underflow.</p> </blockquote></li> </ul> <p>I've never personally had a use for it, though.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload