Difference between revisions of "Bit.tobit"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2013.09<br/>
 
'''Available since:''' Gideros 2013.09<br/>
 
=== Description ===
 
=== 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.
+
<translate>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.</translate>
 
<source lang="lua">
 
<source lang="lua">
 
(number) = bit.tobit(x)
 
(number) = bit.tobit(x)
 
</source>
 
</source>
 
=== Parameters ===
 
=== Parameters ===
'''x''': (number) number which range to normalize <br/>
+
'''x''': (number) <translate>number which range to normalize</translate> <br/>
 
=== Return values ===
 
=== Return values ===
'''Returns''' (number) normalized number<br/>
+
'''Returns''' (number) <translate>normalized number</translate><br/>

Revision as of 14:34, 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)

Parameters

x: (number) number which range to normalize

Return values

Returns (number) normalized number