x: ::] 1j2

1j2






On Thursday, August 20, 2020, 05:23:40 p.m. EDT, 'Bo Jacoby' via Programming 
<[email protected]> wrote: 





Hello friends.
    x: 1e8 NB. improves precision
100000000

    x: x: 1e8 NB. doesn't improve precision further but does no harm either
100000000

    x: 1j2 NB. does harm 
|domain error

| x:1j2



I need a function  f  that works as  x:  except that f 1j2 should evaluate to 
1j2  rather than issue an error message.
How is that done?
Thanks.
Bo.
----------------------------------------------------------------------
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