Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


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


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Lil_Lloyd   Members   -  Reputation: 287

Like
0Likes
Like

Posted 27 January 2013 - 10:04 AM

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?



Sponsor:

#2 Bacterius   Crossbones+   -  Reputation: 11538

Like
1Likes
Like

Posted 27 January 2013 - 10:49 AM

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.”





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS