What's wrong with (1&|) ?
((- <.) -: 1&|) _5.1 _5.01 _0.0001 0 0.0001 5.1 5.2 5.0002 1 > From: Rob Hodgkinson <[email protected]> > > Alex, you may be asking 'too much print precision' on your display, eg: > > decimal=:-<. > 9!:11 ]14 > > decimal 5.1 5.2 > 0.1 0.2 > 9!:11 ]15 > > decimal 5.1 5.2 > 0.0999999999999996 0.2 > 9!:11 ]16 > > decimal 5.1 5.2 > 0.09999999999999964 0.2000000000000002 > > You may need to use fmt (8!: x) to produce a specified format to avoid > the system rounding display. > > Rob Hodgkinson > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
