String To Number

Parses a string into a number. Falls back to the chosen value if the string is not a valid number.

Interface

Inputs

ParameterDetailsPossible Types
String

The string containing a number. Surrounding whitespace is ignored, a decimal point (.) may be included, sign prefixes (+/-) are respected, and scientific notation (e.g. "1e-3") is supported.

Primary Input

String
Fallback

The value of the result if the string cannot be parsed as a valid number.

Default: 0

f64

Outputs

ProductDetailsPossible Types
Result

The value produced by the node operation.

Primary Output

f64