2011/3/6 Ralph Goers <[email protected]> > To respond to your first post, yes I believe in mathematics. It isn't > algebra though, it is simply how those numbers are represented and what they > are being used for. > > But I definitely don't get along with people who don't understand that the > value of 2 represented as a floating point number added to 2 represented as > a floating point number does not necessarily equal the integer value of 4. >
That's true, but that's not what you asked. If that's the answer you expected, the least you could do is not mislead the candidate and ask them what 2.0f + 2.0f equals to. Because no matter how you look at it, 2+2=4 is always true, unless you start adding all kinds of extra data that your original question did not include. And dinging someone who would say that the answer is 4? Seriously? -- Cédric -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
