News for hackers. Stuff that matters.
Re:Almost Always Unsigned by cma on Sunday January 02, 2022 @01:48PM (#29772115)
> I can't think of a single time where I've dealt with numbers that exceed a trillion in either direction.

A big one is dealing with currencies like Japanese yen in financial software.

Re:Almost Always Unsigned by kstenerud on Monday January 03, 2022 @03:19AM (#29778504)
Absolutely! But how about a quintillion? Signed 64-bit integers give you 8 quintillion in the positive integer space, and unsigned gives 16 quintillion.

The question is: Will the difference between 8 and 16 quintillion matter enough to say "unsigned by default"?

But currency types need to be signed anyway, so I guess that's that ;-)