N° of the week from a date
|
11-03-2015, 07:59 PM
Post: #4
|
|||
|
|||
RE: N° of the week from a date
(11-03-2015 07:09 PM)ggauny@live.fr Wrote: I was not knowing this thread. Is my routine agree you ? Your program takes advantage of some techniques you did not use before, for instance INC and integer constants. So that's indeed a step forward. Another step could include using RCL-arithmetice (e.g. RCL+I instead of RCL I +) and integer division (7 IDIV instead of 7 / IP). But I'm not sure if the formula is correct. I tried the sample cases in the mentioned New Year's challenge thread, and some results are wrong. For instance, the program may return week 0 (try 2 Jan 2010). Or Monday, 31 Dec 2012 returns week 53. What about the elegant formula on that French website? (11-03-2015 07:09 PM)ggauny@live.fr Wrote: I have posted a new little routine that return the date from a DOY. She is in the test forum. Now I know it is the right place. The test forum ist for testing forum features. ;-) Dieter |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 5 Guest(s)