Jump to content

Image of the Day

#QuestOfDungeons is an old-fashioned dungeon crawler. #ScreenshotSaturday  #PS4share

https://t.co/1mztLegxeN https://t.co/DpYimg3MZb
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net's newsletters to receive the latest updates and exclusive content.


Sign up now

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

4: Adsense

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   

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?



#2 Bacterius   Members   

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