Difference between revisions of "Math.modf"

From OpenEUO
Jump to: navigation, search
(Created page with " math.modf (x) Returns two numbers, the integral part of x and the fractional part of x.")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
  math.modf (x)
 
  math.modf (x)
  
Returns two numbers, the integral part of x and the fractional part of x.
+
Returns two numbers, the integral part of x and the fractional part of x.  
 +
 
 +
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.huge]]
 +
 
 +
[[Math.min]]
 +
 
 +
[[Math.max]]
 +
 
 +
[http://msdn.microsoft.com/en-us/library/e02ya398%28v=VS.100%29.aspx Windows API - type double]

Latest revision as of 15:19, 9 October 2010

math.modf (x)

Returns two numbers, the integral part of x and the fractional part of x.

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.huge

Math.min

Math.max

Windows API - type double