- Index
- »
- axon
- »
- func:parseFloat
def
func:parseFloat
parseFloat(val, checked: true)
Parse a Str into a Float. Representations for infinity and not-a-number are "-INF", "INF", "NaN". If invalid format and checked is false return null, otherwise throw ParseErr. This string value cannot include a unit (see parseNumber).
Examples:
parseFloat("123.456").format("0.000") parseFloat("NaN") parseFloat("INF")