Math.ldexp

From GiderosMobile
Revision as of 23:30, 27 April 2022 by MoKaLux (talk | contribs)

Available since: Gideros 2011.6
Class: math

Description

load exponent: multiplies a floating point value v1 by the number 2 raised to the v2 power. Returns v1*2^v2 (v2 should be an integer).

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

Parameters

v1: (number) first value
v2: (number) second value

Return values

Returns (number) result