toreal [function]
toreal( var )
returns a real value, generated from variable var
using the Conversion rules
- this function is equivalent to sgs_GetReal / sgs_ToReal in the C API
toreal( 5 ); // returns 5.0 toreal( "3e+2" ); // returns 300.0 toreal( "0xff" ); // returns 255.0