Hello Anssi;
The what: rewrite 'todayno' such that
todayno _
_
The how: an exercise for the reader.
Isn't it that simple?
Anssi Seppälä wrote:
About ten years I have been happy with J's infinity _ and its
behaviour with the primitives and dates presenting open time
intervals. Now J602 makes error (I have no idea why) that I find very
difficult to workaround in the existing code. For example time
interval starting today and no end defined can be represented with two
numbers 20080315 _. The conversion to J day numbers was easy in J601:
load 'dates'
todayno 0 100 100#:20080315 _
76044 _
but in J602:
load 'dates'
todayno 0 100 100#:20080315 _
|NaN error
| todayno 0 100 100 #:2.00803e7 _
The error is result from 0 100 100#:_
Any ideas how 0 100 100#:20080315 _ and similar lines should be
rewritten in J602 without NaN error ?
Anssi
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
--
------------------------------------------------------------------------
|\/| Randy A MacDonald | APL: If you can say it, it's done.. (ram)
|/\| ramacd <at> nbnet.nb.ca |
|\ | | The only real problem with APL is that
BSc(Math) UNBF'83 | it is "still ahead of its time."
Sapere Aude | - Morten Kromberg
Natural Born APL'er |
-----------------------------------------------------(INTP)----{ gnat }-
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm