toReal

Converts the parameter to a real (floating point) number. If conversion fails, zero is returned. If you pass a string, it will be parsed as a number. If you pass a boolean, zero will be returned for FALSE, and one will be returned for TRUE.

Usage

    real = toReal("123.456");
    real = toReal(FALSE);
    real = toReal(123);