have a question. Why when did write 1.262 % 1 then get 0.262, but if 1.263 % 1 , then get 0.2629999999? I understand then this is machine approximation, but why if I choose even numbers, then all good, but if choose odd numbers have approximation
Asked
Active
Viewed 20 times
1
Rudolf Morkovskyi
- 869
- 5
- 19
-
1It's *always* an approximation, just sometimes it's more proximate to your desired value and sometimes less so. – deceze Oct 04 '18 at 10:15