Difference between revisions of "Math.frexp"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Available since:''' Gideros 2011.6<br/> | + | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> |
− | === Description === | + | === <translate>Description</translate> === |
<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> | <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 === | + | === <translate>Parameters</translate> === |
'''v''': (number) <translate>value</translate> <br/> | '''v''': (number) <translate>value</translate> <br/> | ||
− | === Return values === | + | === <translate>Return values</translate> === |
− | '''Returns''' (number) <translate>result</translate><br/> | + | '''<translate>Returns</translate>''' (number) <translate>result</translate><br/> |
Revision as of 07:27, 24 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