PHP Developers Network
http://forums.devnetwork.net/

Integers - signed and unsigned
http://forums.devnetwork.net/viewtopic.php?f=6&t=51437
Page 1 of 2

Author:  Luke [ Tue Jul 11, 2006 10:43 am ]
Post subject:  Integers - signed and unsigned


Author:  matthijs [ Tue Jul 11, 2006 10:56 am ]
Post subject: 


Author:  Oren [ Tue Jul 11, 2006 10:56 am ]
Post subject: 


Author:  GM [ Tue Jul 11, 2006 10:59 am ]
Post subject: 


Author:  MarK (CZ) [ Tue Jul 11, 2006 11:08 am ]
Post subject: 


Author:  Oren [ Tue Jul 11, 2006 11:26 am ]
Post subject: 


Author:  Luke [ Tue Jul 11, 2006 12:14 pm ]
Post subject: 

Alright... that makes sense enough. This is because computers do not really understand negative numbers, right?

Author:  MrPotatoes [ Tue Jul 11, 2006 12:31 pm ]
Post subject: 

they do. it's in the binary.

it's not going to be any faster

just remember to choose the correct type, you don't want over flow. that means taht you've reached the max number and you go back to zero. that my friend would blow some serious balls

Author:  jamiel [ Tue Jul 11, 2006 12:39 pm ]
Post subject: 

Haha - Indeed. *knows one of his tables currently sitting on 155862968 records*

For interests sake, the signed range of a normal INT in MySQL is -2147483648 to 2147483647. The unsigned range is 0 to 4294967295.

Author:  MrPotatoes [ Tue Jul 11, 2006 1:22 pm ]
Post subject: 


Author:  Luke [ Tue Jul 11, 2006 1:39 pm ]
Post subject: 


Author:  Christopher [ Tue Jul 11, 2006 1:45 pm ]
Post subject: 


Author:  MrPotatoes [ Tue Jul 11, 2006 1:50 pm ]
Post subject: 


Author:  Luke [ Tue Jul 11, 2006 1:52 pm ]
Post subject: 


Author:  Christopher [ Tue Jul 11, 2006 2:31 pm ]
Post subject: 


Page 1 of 2 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/