Post Reply 
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 ?
Do you like my routine ? If yes i'm proud.

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
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: N° of the week from a date - Dieter - 11-02-2015, 10:03 PM
RE: N° of the week from a date - Dieter - 11-03-2015 07:59 PM
RE: N° of the week from a date - Dieter - 11-06-2015, 07:01 AM
RE: N° of the week from a date - Dieter - 11-06-2015, 08:10 PM
RE: N° of the week from a date - fhub - 11-10-2015, 02:35 PM
RE: N° of the week from a date - walter b - 11-10-2015, 10:02 PM
RE: N° of the week from a date - walter b - 11-11-2015, 07:56 AM
RE: N° of the week from a date - d b - 11-11-2015, 04:00 PM



User(s) browsing this thread: 1 Guest(s)