bill lam wrote:
> Hi all,
>
> With respect to J's IEEE double, how to get the numbers that
> a. just larger than 0 (smallest positive number)
> b. just smaller than 1
> c. largest positive number
>
value=:3 : 0
's e m'=.y
s*(2^(_52+ e-1023))* #. 1, _52 {. #: m
)
NB. smallest positive
value 1 1 0
2.22507e_308
NB. largest positive
value 1,2046,#. 52#1
1.79769e308
NB. largest less than 1
0j20": value 1 1022,#. 52#1
0.99999999999999988898
Best wishes,
John
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm