Converts the given argument to a float.
Does not support maps or arrays at this time.
toFloat("1") // 1 toFloat("1.2") // 1.2 toFloat(123) // 123 toFloat(123.4) // 123.4 toFloat(false) // 0 toFloat(true) // 1
Last updated 25 days ago