You can use 2e9 instead of _ 


----- Original Message -----
From: Anssi Seppälä <[EMAIL PROTECTED]>
Date: Saturday, March 15, 2008 15:41
Subject: [Jprogramming] Handling NaN error with #:_
To: Programming forum <[email protected]>

> 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 ?
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to