From: Cyberlord (
Date: 11/19/01

>WARNING: This is __NEWBIE__ ....

>Anyway... is there away to make values go above a standard int/unsigned
long.... like >if you are going to have 1000 lvls and exp is go to go
__REalLLY__ high..... I heard >of floats but they couldn't go positive.

Why couldn't they go positive?

You can count up to 4,294,967,295 with a unsigned long int, and up to
18,446,744,073,709,551,616 with an unsigned long long int with gcc in UNIX
(at least I think you can unsign a long long, never tried) if not you can
get to 9,223,372,036,854,775,808 with a long long int.  If that doesn't give
you enough room then go float. Just remember to use %lu, %llu(?), or %f
instead of %d when printing the experience.


   | FAQ: |
   | Archives: |

This archive was generated by hypermail 2b30 : 12/06/01 PST