def

func:as

as(val, unit)

Set the unit of a number. Unlike to() function, no conversion of the scalar of the number is performed. The target unit can be a unit string or a number in which case the scalar value of the unit parameter is ignored (by convention should be 1).

Examples:

75°F.as(1°C)
75°F.as("°C")

meta

supertypes

feature

Feature namespace of definitions formatted as feature:name

    func

Axon function