05.04.2018, 23:12
This is normal behaviour for float values.
It's because it's limited to 32-bits, which both holds the digits before and after the comma.
Due to being only 32-bits, the resolution is limited as well and these errors occur because of the limited resolution.
https://ryanstutorials.net/binary-tu...ting-point.php
http://cstl-csm.semo.edu/xzhang/Clas...OATING_tut.htm
These may explain a bit about it.
It's because it's limited to 32-bits, which both holds the digits before and after the comma.
Due to being only 32-bits, the resolution is limited as well and these errors occur because of the limited resolution.
https://ryanstutorials.net/binary-tu...ting-point.php
http://cstl-csm.semo.edu/xzhang/Clas...OATING_tut.htm
These may explain a bit about it.