Skip to main content
The Number Convert node transforms various input data types into numeric values. It accepts a single input of type integer, float, string, or boolean and produces two outputs: a floating-point number and an integer. This is useful for converting text or logical values into a format that can be used by other mathematical or processing nodes in your workflow.

Inputs

Note: When the input is a string, it must not be empty and must contain a valid representation of a number (e.g., "123", "3.14"). The node will raise an error for empty strings, text that cannot be parsed as a number, or values that are not finite (like "inf" or "nan"). For boolean inputs, true converts to 1.0 (FLOAT) and 1 (INT), while false converts to 0.0 (FLOAT) and 0 (INT). For float inputs and for strings that contain a decimal number, the integer output is obtained by truncating the decimal portion.

Outputs

This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): d6a774bf7c3ad9482b2275adc6ccc9e47c82b1f35f11c5a241b00efd29526f94