I am trying to do some day of week stuff.
I cannot seem to understand how MOD works no matter how much I read and re-read the explanation it doesnt jive with the results I get.
I do not see the remainder expressed as an integer. for example:
I would expect
2451550 Mod 7 - to give the result 428571429
as
2451550/7 = 350221.428571429
the result I get is 3 !!
Here are some more results:
J 2451545 J/7 350220.714285714 J Mod 7 5
J 2451546 J/7 350220.857142857 J Mod 7 6
J 2451547 J/7 350221 J Mod 7 0
J 2451548 J/7 350221.142857143 J Mod 7 1
J 2451549 J/7 350221.285714286 J Mod 7 2
J 2451550 J/7 350221.428571429 J Mod 7 3
J 2451551 J/7 350221.571428571 J Mod 7 4
J 2451552 J/7 350221.714285714 J Mod 7 5
J 2451553 J/7 350221.857142857 J Mod 7 6
J 2451554 J/7 350222 J Mod 7 0
J 2451555 J/7 350222.142857143 J Mod 7 1
J 2451556 J/7 350222.285714286 J Mod 7 2
J 2451557 J/7 350222.428571429 J Mod 7 3
J 2451558 J/7 350222.571428571 J Mod 7 4
J 2451559 J/7 350222.714285714 J Mod 7 5
J 2451560 J/7 350222.857142857 J Mod 7 6
J 2451561 J/7 350223 J Mod 7 0
J 2451562 J/7 350223.142857143 J Mod 7 1
J 2451563 J/7 350223.285714286 J Mod 7 2
J 2451564 J/7 350223.428571429 J Mod
Now you might think that this is what i want, and it is except that on Feb 24 2000 it skips a day and I cant figure out why and I think I ned to understand MOD in order to figure it out.
------------------
Kind Regards
Mike
I cannot seem to understand how MOD works no matter how much I read and re-read the explanation it doesnt jive with the results I get.
I do not see the remainder expressed as an integer. for example:
I would expect
2451550 Mod 7 - to give the result 428571429
as
2451550/7 = 350221.428571429
the result I get is 3 !!
Here are some more results:
J 2451545 J/7 350220.714285714 J Mod 7 5
J 2451546 J/7 350220.857142857 J Mod 7 6
J 2451547 J/7 350221 J Mod 7 0
J 2451548 J/7 350221.142857143 J Mod 7 1
J 2451549 J/7 350221.285714286 J Mod 7 2
J 2451550 J/7 350221.428571429 J Mod 7 3
J 2451551 J/7 350221.571428571 J Mod 7 4
J 2451552 J/7 350221.714285714 J Mod 7 5
J 2451553 J/7 350221.857142857 J Mod 7 6
J 2451554 J/7 350222 J Mod 7 0
J 2451555 J/7 350222.142857143 J Mod 7 1
J 2451556 J/7 350222.285714286 J Mod 7 2
J 2451557 J/7 350222.428571429 J Mod 7 3
J 2451558 J/7 350222.571428571 J Mod 7 4
J 2451559 J/7 350222.714285714 J Mod 7 5
J 2451560 J/7 350222.857142857 J Mod 7 6
J 2451561 J/7 350223 J Mod 7 0
J 2451562 J/7 350223.142857143 J Mod 7 1
J 2451563 J/7 350223.285714286 J Mod 7 2
J 2451564 J/7 350223.428571429 J Mod
Now you might think that this is what i want, and it is except that on Feb 24 2000 it skips a day and I cant figure out why and I think I ned to understand MOD in order to figure it out.
------------------
Kind Regards
Mike
Comment