Does comparing equality of float numbers mislead junior developers even if no rounding error occurs in my case? – softwareengineering.stackexchange.com

For example, I want to show a list of buttons from 0,0.5,... 5, which jumps for each 0.5. I use a for loop to do that, and have different color at button STANDARD_LINE: var MAX=5.0; var DIFF=0.5 var ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Does comparing equality of float numbers mislead junior developers even if no rounding error occurs in my case? – softwareengineering.stackexchange.com"