Difference between revisions of "Math.frexp"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === Returns m and e such that v = m2^e, e is an integer and the absolute value of m is in the range [0.5,...") |
|||
Line 4: | Line 4: | ||
Returns m and e such that v = m2^e, e is an integer and the absolute value of m is in the range [0.5, 1) (or zero when v is zero). | Returns m and e such that v = m2^e, e is an integer and the absolute value of m is in the range [0.5, 1) (or zero when v is zero). | ||
<source lang="lua"> | <source lang="lua"> | ||
− | (number) | + | (number) = math.frexp(v) |
</source> | </source> | ||
− | '''v | + | '''v''': (number) value ''''''<br/> |
'''Returns''' (number) result<br/> | '''Returns''' (number) result<br/> |
Revision as of 10:17, 23 August 2018
Available since: Gideros 2011.6
Description
Returns m and e such that v = m2^e, e is an integer and the absolute value of m is in the range [0.5, 1) (or zero when v is zero).
(number) = math.frexp(v)
'v: (number) value '
Returns (number) result