Wrong value stored in int?
Author |
Message |
araisbec
|
Posted: Tue Mar 09, 2010 8:36 pm Post subject: Wrong value stored in int? |
|
|
Hey again! Little problem I'm having that's completely stumping me... I am trying to store a phone number in an int variable (format 9058981760), and when i input 9058981760, the variable stores the value 469047168?? I've never had this problem before, but I'm guessing it has to do with the number being to large to store in the memory? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
rdrake
|
Posted: Tue Mar 09, 2010 8:41 pm Post subject: RE:Wrong value stored in int? |
|
|
Look up unsigned integers or longs. If your value is not going to be negative, using an unsigned int should allow you to store numbers almost twice as big. |
|
|
|
|
|
|
|