Maths error


Author Message
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3364
Posted: 08:41am 29 Jun 2011      

In the PIC32 an integer is 32 bits which is about 4 billion. The 16777100 mentioned by Bob is the maximum integer that you can store in a floating point number without loosing accuracy.

In MMBasic you do not see an integer as everything is expressed as a floating point number. As the size of a number increases floating point will start to loose track of the least significant digit, this happens at about 16777100.

Geoff
Geoff Graham - http://geoffg.net