Check whole string in is_number
The stod test passed on strings that starts like a number ("1a"
, "0.3e23udonki"
), producing errors on C++ compiling. Now the whole string must be a valid numeric representation.
Example:
PROCEDURE:
display 0.3e23udonki