Difference between revisions of "Math.huge"

From OpenEUO
Jump to: navigation, search
 
Line 2: Line 2:
  
 
The value HUGE_VAL, a value larger than or equal to any other numerical value.
 
The value HUGE_VAL, a value larger than or equal to any other numerical value.
 +
 +
Numbers in Lua are doubles and doubles under Windows are a 64-bit floating point type: 1 bit for sign, 11 bits for the exponent, and 52 bits for the mantissa. Its range is +/–1.7E308 with at least 15 digits of precision.
  
 
[[Math.abs]]
 
[[Math.abs]]
Line 16: Line 18:
  
 
[[Math.pi]]
 
[[Math.pi]]
 +
 +
[http://msdn.microsoft.com/en-us/library/e02ya398%28v=VS.100%29.aspx Windows API - type double]

Latest revision as of 15:20, 9 October 2010

math.huge

The value HUGE_VAL, a value larger than or equal to any other numerical value.

Numbers in Lua are doubles and doubles under Windows are a 64-bit floating point type: 1 bit for sign, 11 bits for the exponent, and 52 bits for the mantissa. Its range is +/–1.7E308 with at least 15 digits of precision.

Math.abs

Math.ceil

Math.floor

Math.min

Math.max

Math.modf

Math.pi

Windows API - type double