float is wrong
#6

Quote:
Originally Posted by Pottus
Посмотреть сообщение
floats are not exact that is why you always use <= or => when making comparisons.
Well 0.5 is exact for me. Is it possible to round 0.004999 to 0.005 as a workaround?
Reply


Messages In This Thread
float is wrong - by GoldenLion - 12.02.2017, 18:35
Re: float is wrong - by Jefff - 12.02.2017, 18:39
Re: float is wrong - by GoldenLion - 12.02.2017, 18:42
Re: float is wrong - by Pottus - 12.02.2017, 19:00
Re: float is wrong - by Dayrion - 12.02.2017, 19:22
Re: float is wrong - by GoldenLion - 12.02.2017, 19:35
Re: float is wrong - by Vince - 12.02.2017, 19:55
Re: float is wrong - by GoldenLion - 12.02.2017, 20:13

Forum Jump:


Users browsing this thread: 1 Guest(s)