parseint
This block is part of the number group and was last modified in core v10.4.28.
parseint v10.4.28 In pins 2
- value required
value - radix
number
Out pins 2
- number
number - succes
condition
Parses the value pin like JavaScript parseInt(value, radix): skips leading whitespace and an optional sign, then consumes the longest run of digits valid in the radix (default 10; a 0x prefix forces 16), stopping at the first invalid character instead of failing. radix must be 0 or 2-36; when no digits parse, success is false and the number pin is left unwritten. Example: value="12abc" radix=10 -> 12; value="0xff" -> 255.
A typical wiring for parseInt: the number out pin feeds cast to value.
Version history
Introduced in v10.4.28.
Back to
number Return to the main group to view all sub-groups Back to parse Return to the group to view all blocks within this group 