- Index
- »
- axon
- »
- func:parseUnit
def
func:parseUnit
parseUnit(val, checked: true)
Parse a Str into a standardized unit name. If the val is not a valid unit name from the standard database then return null or raise exception based on checked flag.
Examples:
parseUnit("%") parseUnit("percent")