News for hackers. Stuff that matters.
Re:A tale of two’s complement by kibwen on Monday December 29, 2014 @02:43AM (#8808875)
Some values that you wish to model don't have any logical upper bound. In this case the correct solution is to forgo fixed-size integers entirely and use an arbitrary-precision integer. If that is impractical for your given domain, then you need to select the largest fixed-size numeric type that is practical and resign yourself to some degree of potential incorrectness.
Re:A tale of two’s complement by derefr on Tuesday December 30, 2014 @03:46AM (#8813835)
I think the question is—in the mentioned case, what manner of potential incorrectness is the least problematic?