Jump to content

  • Log In with Google      Sign In   
  • Create Account

14 years ago on June 15th Gamedev.net was first launched! We want to thank all of you for being part of our community and hope the best years are ahead of us. Happy birthday Gamedev.net!

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: 3834

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.


"The best comment is a deleted comment."
website · blog





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