mardi 15 avril 2014

How to handle numbers bigger than machine representative number?


Vote count:

0




Assuming now I'm assigning ID number to my database, the database is huge(items more than machine representative number).


I'm using Java, I know the biggest data type in Java is long int(64 bit). How could I deal with numbers bigger than that?


One of my solutions is always converting numbers to strings, which will cause the overhead and I still don't figure out how to accumulate the number(bigger than MAX_VALUE) that is meant to converted to strings.



asked 34 secs ago






Aucun commentaire:

Enregistrer un commentaire