def

func:parseNumber

parseNumber(val, checked: true)

Parse a Str into a number with an option unit. If invalid format and checked is false return null, otherwise throw ParseErr. Also see parseInt() and parseFloat() to parse basic integers and floating point numbers without a unit.

Examples:

parseNumber("123")
parseNumber("123kW")
parseNumber("123.567").format("#.000")

meta

supertypes

feature

Feature namespace of definitions formatted as feature:name

    func

Axon function