Error thrown (or wrapped in a
Failure) when a conversion from string to a number fails.
say +"42 answers";CATCH ;# OUTPUT: «X::Str::Numeric: Cannot convert string to number: trailing characters after number in '42⏏ answers' (indicated by ⏏)␤»
method source(--> Str)
Returns the string that was attempted to convert to a number
method pos(--> Int)
Gives the position into the string where the parsing failed.
method reason(--> Int)
Verbal description of the reason why the conversion failed.