Garry's Mod Wiki

math.ldexp

  number math.ldexp( number normalizedFraction, number exponent )

Description

Takes a normalised number and returns the floating point representation.

Effectively it returns the result of normalizedFraction * 2.0 ^ exponent. math.frexp is the opposite function.

Arguments

1 number normalizedFraction
The value to get the normalized fraction and the exponent from.
2 number exponent
The value to get the normalized fraction and the exponent from.

Returns

1 number
result