ldexp() \ Language (API) \ Wiring ALPHA 1.0
Author: Hernando Barragán
Description: Wiring is an electronic sketchbook and hardware electronics for developing ideas. It is a context for learning fundamentals of computer programming and prototyping with electronics within the context of the electronic arts.
Keywords: Wiring, Processing, Interactive Media, Electronic Arts, Programming, C, C++, Hernando Barragán

Search wiring.org.co:

Reference for Wiring version 0024+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.

Name | ### ldexp()
Examples |
    double c = ldexp(3, 2);  // Sets c to 12 = 3 * 2 ^ 2
    double d = ldexp(2, 4);  // Sets d to 32 = 2 * 2 ^ 4
Description | The ldexp() function multiplies a floating-point number by an integral power of 2. The ldexp() function returns the value of x times 2 raised to the power exp.
Syntax |
    ldexp(x, exp)
Parameters |
x | double, float or int
exp | double, float or int
Returns | double
Usage | Application

Updated on January 11, 2010 09:58:46pm PST