String Conversions
You can attempt to convert from raw strings to doubles or ints. Different languages expose vastly different behaviors around cases where the numbers cannot be converted, so blocks of code that rely on converted numbers are structured similarly to if start
statements.
Use if string to double start
and if string to int start
to convert string(s) to double(s) or int(s), respectively. Each takes in any number of repeating parameters: a string to convert and the numeric type to try to store it in. Code before the next respective if string to double end
or if string to int end
will run only if the conversion was successful.
C#:
Python:
Last updated