Search code examples
mysqlprogramming-languagestypesintegerstorage

Does some Integer data types differnate with other Programming languages?


Do Integer data types allow spaces when it should be just numeric?

Do other programming languages allow spaces in an Integer data type?

For example, MySQL database storage does not allow spaces to be stored in an int data type. Do other languages allow it when storing in their own int type?


Solution

  • Don't let the fact that some systems present integers to the user, or accept integers from the user, with spaces or commas or other formatting fool you into thinking that integers can contain spaces or commas or anything else.

    Integers are numbers and you are best thinking of them as just that, no more and no less.