3

I am using Mathematica 11.1.1 and I was surprised when I saw:

Mod[0.2, 0.2] == 0.
Mod[0.4, 0.2] == 0.
Mod[0.6, 0.2] == 0.2
Mod[1.0, 0.2] == 0.2

I cannot understand why the last two results are wrong!!

Mr.Wizard
  • 271,378
  • 34
  • 587
  • 1,371
Unbelievable
  • 4,847
  • 1
  • 20
  • 46

0 Answers0