R largest/smallest representable numbers

后端 未结 2 665
南旧
南旧 2021-02-19 03:51

I\'m trying to get the largest/smallest representable number in R.

After typing \".Machine\"

I got:

$double.xmin
[1] 2.225074e-308

$double.xmax
         


        
2条回答
  •  长情又很酷
    2021-02-19 04:37

    Here are some representations using SAS, IEEE 754 Big Endian?

    data _null_;
        y=constant('big');
        put y hex16.;
        put y E21.3;
    run;quit;
    

    Biggest

    7FEFFFFFFFFFFFFF 1.79769313486230E+308

    data _null_;
        y=constant('small');
        put y hex16.;
        put y E21.3;
    run;quit;
    

    Smallest

    0010000000000000 2.22507385850720E-308

    I am not sure the smallest because SAS may set aside some values for missings.

提交回复
热议问题