Difference between revisions of "Math.ldexp"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === Returns v12^v2 (v2 should be an integer). <source lang="lua"> (number), = math.ldexp(v1v2,) </source>...")
 
Line 4: Line 4:
 
Returns v12^v2 (v2 should be an integer).
 
Returns v12^v2 (v2 should be an integer).
 
<source lang="lua">
 
<source lang="lua">
(number), = math.ldexp(v1v2,)
+
(number) = math.ldexp(v1,v2)
 
</source>
 
</source>
'''v1:''' (number) first value ''''''<br/>
+
'''v1''': (number) first value ''''''<br/>
'''v2:''' (number) second value ''''''<br/>
+
'''v2''': (number) second 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 v12^v2 (v2 should be an integer).

(number) = math.ldexp(v1,v2)

'v1: (number) first value '
'v2: (number) second value '
Returns (number) result