qct refers to relative error. In your case
   (] %~ ] - <.) 20080516.00000057
2.8384202e_14
which is smaller than the default qct of 2^_44
   9!:18''
5.6843419e_14

As you already noted, you have to change the qct.
      ~.(!.(2^_55)) 20080516 20080516 20080516.00000057
20080516 20080516


Alex Rufon wrote:
Hello.

I've encountered a problem with ~.
Normally, if I do this it works:

   ~. 1 1.00000057 1

1 1.00000057

Then, this morning, a bug was reported in our Cebu factory for a length
error. It took me a while then I realize that the problem was this:

   ~. 20080516 20080516 20080516.00000057

20080516

The code actually calculates how the daily WIP or how many items are
going to be produced by a certain factory line given a start and end
date-time. Hence the code is failing because it expects two values and
is only getting one.

Since this is critical for me, I had to replace that very simple code
with this:

   ".&>~.":&.><&> 20080516 20080516 20080516.00000057

20080516 20080516.00000057

Is this a bug? I've read the documentation and it says that the
comparison is tolerant. Is there an intolerant comparison much like the
intolerant index of (i.!.0)?

Thanks for any help.

r/Alex

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to