Concept Framework 2.0 documentation | Contents | Index |
Name | Version | Deprecated |
int16 | version 1.0 | no |
number int16(number) |
Gets the 16 bits signed integer value of a number. |
import standard.C.casts class Main { function Main() { var decimal_number=-12.345; var a_number=75000; echo "The 16 bit representation of " + decimal_number + " is "; echo int16(decimal_number); echo "\n"; echo "The 16 bit representation of " + a_number + " is "; echo int16(a_number); echo "\n"; } } Results The 16 bit representation of -12.345000000000001 is -12 The 16 bit representation of 75000 is -32768 |
Documented by Simona Gabriela Plesuvu, generation time: Fri Jan 21 18:06:18 2011 GMT | (c)2011 RadGs Software |