Dealing with VERY large numbers

BlitzPlus Forums/BlitzPlus Programming/Dealing with VERY large numbers

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

thats because int is signed but the filesize is unsigned int
what you need to do is divide it by 1024 and then recalculate its "real" value so it will be back in the positive. (this means divide the maximum neg number by 1024 as well as add the difference to that to the maximum positive number / 1024