Aug 25, 2006 11:25
Software Engineering lesson 7:
"Greater than or equal to" is not the same operation as "Greater than" with a slightly different value (for floating point numbers). More specifically, if I have the statement "ColumnA is valid if it is greater than or equal to 150", it should not be implemented as "ColumnA > 149.9".
Leave a comment
Comments 4
The long and the short of it:
unsigned int count = 640
[...]
while( count >= 0 ){...}
Please, please cry with me.
Reply
I mean, *sob*
Reply
Reply
Reply
Leave a comment