• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Functions for working with the idealized calendar of Planet Xhilr


Commit MetaInfo

Revisión26ee06c4d3056f43e971d6f5b3587a9ddca06e34 (tree)
Tiempo2017-06-13 17:09:44
AutorJoel Matthew Rees <joel.rees@gmai...>
CommiterJoel Matthew Rees

Log Message

working version

Cambiar Resumen

Diferencia incremental

--- a/econcalcmonths.bc
+++ b/econcalcmonths.bc
@@ -25,10 +25,10 @@
2525 define showmonths( years ) {
2626 sum = 0;
2727 for ( year = 0; year < years; ++year ) {
28- for ( month = 1; month <= 12; ++month ) {
28+ for ( month = 0; month < 12; ++month ) {
2929 days = 29;
3030 sum += days;
31- product = year * ( 241957 / 686 ) + month * ( 241957 / 686 ) / 12;
31+ product = year * ( 241957 / 686 ) + ( month + 1 ) * ( 241957 / 686 ) / 12;
3232 if ( ( product - sum ) >= 0 ) {
3333 days += 1; sum += 1;
3434 }