dist/modules/to.js
function toFloat(val, def) {
    if (is_1.isFloat(val))
        return val;
    if (!is_1.isValue(val))
        return toDefault(null, def);
    var parsed = function_1.tryWrap(parseFloat, val)(def);
    if (is_1.isFloat(parsed) || is_1.isNumber(parsed))
        return parsed;
    if (toBoolean(val))
        return 1;
    return 0;
}
function toFloat(val, def) {
    if (is_1.isFloat(val))
        return val;
    if (!is_1.isValue(val))
        return toDefault(null, def);
    var parsed = function_1.tryWrap(parseFloat, val)(def);
    if (is_1.isFloat(parsed) || is_1.isNumber(parsed))
        return parsed;
    if (toBoolean(val))
        return 1;
    return 0;
}
function toFloat ( val , def ) { if ( is_1 . isFloat ( val ) ) return val ; if ( ! is_1 . isValue ( val ) ) return toDefault ( null , def ) ; var parsed = function_1 . tryWrap ( parseFloat , val ) ( def ) ; if ( is_1 . isFloat ( parsed ) || is_1 . isNumber ( parsed ) ) return parsed ; if ( toBoolean ( val ) ) return 1 ; return 0 ; }
To Float
Converts value to a float.

@param val the value to convert to float.
To Float Converts value to a float .