and by O.R. we mean overrun also known as overflow, of the integer variety. spent a while wondering why my java program was producing negative numbers via multiplication and division of strictly positive numbers. as far as i can tell, java simply does not check for integer overflow. had to convert everything into BigDecimal and BigInteger then back to .doubleValue() for it all to work without throwing up exceptions or error messages. JUST WORK, DAMMIT!!!
integer overrun
Archived Posts from this Category
29 November 2006
check the OR you like it so far
Posted by asocialstudies under abstraction, BigDecimal, BigInteger, error checking, integer overflow, integer overrun, java, overflow, Uncategorized, usability[3] Comments