https://i.stack.imgur.com/4AwjX.png
Its adding in 1 at the end of that console log output. Why? Answer is suppose to be only 13.37
https://i.stack.imgur.com/4AwjX.png
Its adding in 1 at the end of that console log output. Why? Answer is suppose to be only 13.37
Likely because it is adding to numbers of type double
(I am not a huge Python expert though, so I could be wrong). The double
type, much like single
does not have perfect precission. Hence some decimal errors can occur...