toint [function]
toint( var )
returns an integer, generated from variable var
using the Conversion rules
- this function is equivalent to sgs_GetInt / sgs_ToInt in the C API
toint( 5.4 ); // returns 5 toint( "0xff" ); // returns 255