Yes, you can work around all of these issues by overriding default number behaviour. But some things that look like numbers are really just strings of digits.
Yes, you can work around all of these issues by overriding default number behaviour. But some things that look like numbers are really just strings of digits.
The fact that databases use auto-incrementing integers to ensure uniqueness is an implementation detail, and not a strictly necessary one (think UUIDs).
So just because something looks like a number doesn't mean that you can do 'safe' things like add leading zeros.
That looks like a framework-specific issue and if that’s how you process incoming numbers from the Internet, you are clearly doing something wrong.
Anyone on the Internet will reasonably expect that a decimal number provided to a Internet input-field will be interpreted as a decimal number.
Anything else, unless explicitly stated, is by definition an error on the part of the application developer.