Health & Environmental Research Online (HERO)


Print Feedback Export to File
451198 
Journal Article 
Signalling integer overflows in Java - A tool for checking overflows in Java code 
Bapst, F; Kilchoer, F 
2008 
Dr. Dobb's Journal
ISSN: 1044-789X 
33 
54-58 
English 
When computer scientists manipulate numbers, they know that from a mathematical point of view their numbers sometimes behave strangely. For programmers, it's no surprise that a floating-point number may not vary when it is increased by 1.0, or that adding two positive integers can lead to a negative result. The latter phenomenon is known as "integer overflow" - the fixed-length representation of signed integers (that is, 32 bits) leads to a model of so-called "circular arithmetic"' in which the greatest positive integer is followed by the smallest negative integer.