Concept Framework 1.0 documentation Contents | Index

standard.C.casts.int64

Name Version Deprecated
int64 version 1.0 no

Prototype:
number int64(number)


Description:
Gets the 64 bits signed integer value of a number.

Example:
import standard.C.casts


class Main {
function Main() {
var decimal_number=-12.345;
var a_number=12337500087987979123123;

echo "The 64 bit representation of " + decimal_number + " is ";
echo int64(decimal_number);
echo "\n";

echo "The 64 bit representation of " + a_number + " is ";
echo int64(a_number);
echo "\n";

}
}


Results
The 64 bit representation of -12.345000000000001 is -12
The 64 bit representation of 12337500087987980000000 is -9223372036854775800

Returns:
Returns the 64 bits signed integer value of a number.

Documented by Simona Gabriela Plesuvu, generation time: Thu Oct 15 20:02:02 2009 GMT(c)2009 RadGs Software