Breadking 4 billion n

Al Wilkins wilkins at mailer.jhuapl.edu
Fri Aug 10 23:09:56 AEST 1990


Hey, I have the same problem. It depends on what you want to do with the
numbers. If you are only totaling, you can use a counter to increment the
billions. When your total is greater that 1 billion, add one to the increment
variable and subtract 1 billion from the total. If you are going to manipulate
the total, then I don't know that you can do it. Unsigned Long maximum is
2^32.


Carl Schelin
(using Al's machine)
--



More information about the Comp.lang.c mailing list