Error money per distance
#2

Integer divided by integer will remain integer. As such 8/1000 will simply yield 0. And as we all know, anything multiplied by 0 yields 0. The result will not be automatically converted to a floating point number. Instead of rounding the distance, round the final result.
Reply


Messages In This Thread
Error money per distance - by AlexuTzVs - 06.09.2016, 14:32
Re: Error money per distance - by Vince - 06.09.2016, 14:49
Re: Error money per distance - by AlexuTzVs - 06.09.2016, 15:00
Re: Error money per distance - by AlexuTzVs - 06.09.2016, 20:53
Re: Error money per distance - by SickAttack - 06.09.2016, 21:48
Re: Error money per distance - by AlexuTzVs - 11.09.2016, 23:07
Re: Error money per distance - by Shinja - 12.09.2016, 11:26

Forum Jump:


Users browsing this thread: 1 Guest(s)