| Concept Framework 2.2 documentation | Contents | Index |
| Name | Version | Deprecated |
| float | version 1.0 | no |
| number float(number) |
| Gets the floating point (float C type) of a static number (double C type). |
import standard.C.casts
class Main {
function Main() {
var decimal_number=-12.345;
var a_number=12337500087987979123123;
echo "The float representation of " + decimal_number + " is ";
echo float(decimal_number);
echo "\n";
echo "The float representation of " + a_number + " is ";
echo float(a_number);
echo "\n";
}
}
Results
The float representation of -12.345000000000001 is -12.345000267028809
The float representation of 12337500087987980000000 is 12337499715090696000000
|
| Documented by Simona Gabriela Plesuvu, generation time: Sun Jan 27 18:15:14 2013 GMT | (c)2013 Devronium Applications |