Const
Converts an unknown value to a number. Alias for the Number constructor.
Number
The value to convert.
The numeric representation of n.
n
const input = '123.45';const result = Num.from(input);assert(result === 123.45); Copy
const input = '123.45';const result = Num.from(input);assert(result === 123.45);
Converts an unknown value to a number. Alias for the
Number
constructor.