String.to_number

String.to_number

String.to_number

Function

Convert a string to a numeric value according to BT relaxed numeric rules.

Syntax

Parameters

No parameters.

Return value

TypeDescription
Int/Float/NullReturns Int when it can be parsed into an integer, Float when it can be parsed into a floating point number, and Null when it cannot be parsed.

Example

Notes

  • The original string will not be modified.