toNumber

Function: toNumber()

Converts various data types into a number.

Syntax

toNumber(value)

ArgumentTypeDescription
valueString, TrueFalse or NumberThe value to be converted.

Examples

toNumber(in.value)

Returns the number 14462 where the attribute in.value contains a string "14462".

See Also