Suppose you have a text value of "123AA". If you try converting it to a number using ToNumber('123AA',1) the result should be 0 since it will try to convert it to a number but fail due to the text that's included. Instead, I'm finding that it returns 123 and silently ignores the text on the end of the number. This leads to unexpected results.
Interestingly if the number has text at the front instead of the end like "AA123" then it does return 0 as expected.
Attached is an example.
Why is this happening?