Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    printf "long version of ulp: %s\n", Math::MPFR->new($ulp);
    my $l2 = log2($ulp);
    printf "log2(ulp) = %d, so I expect it to fit within %d digits of the 
    +fixed decimal point\n", $l2, -$l2;
    
  2. or download this
    __OUTPUT__
    POS_NORM_SMALLEST = 2**-1022
    ...
    [303 digits long]: 2.2250738585072018771558785585789482407880088486837
    +041956131300312119688603996006965297904292212628858639037013670281908
    +017171296072711910355127227413175152199055740043138804567803233377539
    +881639177387328959246074229270113078053813397081653361296447449529789
    +5212189790907838525833659018517896187998851504e-308
    For _FIXED POINT_ notation,
            starts 308 digits after the decimal point