| Concept Framework 2.2 documentation | Contents | Index |
| Name | Version | Deprecated |
| ldexp | version 1.0 | no |
| number ldexp(number x, number exp) |
| x | [in] Any number |
| exp | [in] Integer exponent |
|
Computes a real number from the mantissa and exponent. Returns the value of x * 2^exp if successful.
On overflow (depending on the sign of x), ldexp returns +/- indefinite. |
import standard.C.math
class Main {
function Main() {
var x = 4;
var y;
var p = 3;
y = ldexp(x, p);
echo "" + x + " times two to the power of " + p + " is " + y;
}
}
Results
4 times two to the power of 3 is 32
|
| Documented by Simona Gabriela Plesuvu, generation time: Sun Jan 27 18:15:14 2013 GMT | (c)2013 Devronium Applications |