Difference between revisions of "Bit.tobit"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2013.09<br/> === Description === Normalizes a number to the numeric range for bit operations and returns it. This function is usually...") |
|||
Line 4: | Line 4: | ||
Normalizes a number to the numeric range for bit operations and returns it. This function is usually not needed since all bit operations already normalize all of their input arguments. | Normalizes a number to the numeric range for bit operations and returns it. This function is usually not needed since all bit operations already normalize all of their input arguments. | ||
<source lang="lua"> | <source lang="lua"> | ||
− | (number) | + | (number) = bit.tobit(x) |
</source> | </source> | ||
− | '''x | + | '''x''': (number) number which range to normalize ''''''<br/> |
'''Returns''' (number) normalized number<br/> | '''Returns''' (number) normalized number<br/> |
Revision as of 10:21, 23 August 2018
Available since: Gideros 2013.09
Description
Normalizes a number to the numeric range for bit operations and returns it. This function is usually not needed since all bit operations already normalize all of their input arguments.
(number) = bit.tobit(x)
'x: (number) number which range to normalize '
Returns (number) normalized number