Difference between revisions of "Math.frexp"
From GiderosMobile
Line 2: | Line 2: | ||
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
=== Description === | === 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). | + | <translate>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).</translate> |
<source lang="lua"> | <source lang="lua"> | ||
(number) = math.frexp(v) | (number) = math.frexp(v) | ||
</source> | </source> | ||
=== Parameters === | === Parameters === | ||
− | '''v''': (number) value <br/> | + | '''v''': (number) <translate>value</translate> <br/> |
=== Return values === | === Return values === | ||
− | '''Returns''' (number) result<br/> | + | '''Returns''' (number) <translate>result</translate><br/> |
Revision as of 13:33, 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)
Parameters
v: (number) value
Return values
Returns (number) result