R3m/framework Function reference parse.float

{parse.float(Mixed $value)}

Get the float value of a variable.
Returns the float value of value.

Returns the float value of the given variable as a float.
Empty arrays return 0, non-empty arrays return 1.
Strings will most likely return 0 although this depends on the leftmost characters of the string.
The common rules of float casting apply.

More information:


Last modified: 2021-06-07

© 2021 universeorange.com