1

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

  • 1
    It'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

0 Answers0