Repi/Johan Andersson's "I get your fail" new post...

Started by
0 comments, last by Bacterius 11 years, 3 months ago

Please take a look here:

http://igetyourfail.blogspot.jp/2013/01/strings-fundamental-component-of.html

Now, as far as I can tell, converting a floating point number to a string to compare their values is a pretty boneheaded thing to do, and this is the 'fail' of the post, or am I completely wrong?

Advertisement

He's using strings to round the floating-point number - to, uh, one decimal - for comparison, rather than using epsilons like everyone else. So, yes, I guess that is the 'fail'. Someone needs to brush up on positional notation.

“If I understand the standard right it is legal and safe to do this but the resulting value could be anything.”

This topic is closed to new replies.

Advertisement