Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with "MOD"
#1
I have a problem with "MOD". The formula used gives the correct result, namely -6. To get the final result, the calculation instruction is: -6 MOD 7.
The result is -6 (corresponds to the Wiki), the same in Julia or Octave. 
The MS calculator, on the other hand, gives 1. And that is actually the desired result. Who is right now?

It is about a formula for calculating days of the week according to the Julian/Grgorian calendar.
Reply


Messages In This Thread
Problem with "MOD" - by Kernelpanic - 01-05-2025, 09:30 PM
RE: Problem with "MOD" - by SMcNeill - 01-05-2025, 09:57 PM
RE: Problem with "MOD" - by Kernelpanic - 01-05-2025, 10:39 PM
RE: Problem with "MOD" - by Pete - 01-06-2025, 02:01 AM
RE: Problem with "MOD" - by SMcNeill - 01-06-2025, 02:22 AM
RE: Problem with "MOD" - by Pete - 01-06-2025, 02:37 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Big problem for me. MystikShadows 11 1,960 01-16-2025, 05:11 AM
Last Post: JRace
  Problem with _Resize dano 7 1,240 10-22-2024, 07:22 PM
Last Post: dano
  Operator MOD Chris 71 13,363 06-12-2024, 04:55 AM
Last Post: grymmjack
  Menu Run (No EXE) Problem GareBear 5 1,155 10-06-2023, 05:41 AM
Last Post: GareBear
  Possible desktop reporting problem doppler 3 963 08-07-2023, 02:48 PM
Last Post: SpriggsySpriggs

Forum Jump:


Users browsing this thread: 1 Guest(s)