Day of the week: Difference between revisions
Content added Content deleted
(→{{header|Tcl}}: ++ smalltalk) |
(→{{header|Vedit macro language}}: Fix: avoid negative numerator in modulo calculation) |
||
Line 885: | Line 885: | ||
#4 = #13 % 100 |
#4 = #13 % 100 |
||
#5 = #13 / 100 |
#5 = #13 / 100 |
||
#7 = (#1 + (#12+1)*26/10 + #4 + #4/4 + #5/4 |
#7 = (#1 + (#12+1)*26/10 + #4 + #4/4 + #5/4 + #5*5) % 7 |
||
Return |
Return |
||
</lang> |
</lang> |