Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
        print "\n";
    }
    printf "%-6.6s     %30.30s %30.30s %30.30s %30.30s %30.30s\n", 'approx
    +', '%30.16f', '%30.16e', '%a', 'to_hex_floatingpoint()', 'to_dec_floa
    +tingpoint()';
    
  2. or download this
    approx                            %30.16f                        %30.1
    +6e                             %a         to_hex_floatingpoint()     
    +    to_dec_floatingpoint()
    ...
    0.4   -ULP             0.4000000000000000        3.9999999999999997e-0
    +01           0x1.9999999999999p-2       +0x1.9999999999999p-0002    +
    +0d1.5999999999999999p-0002
    0.4                    0.4000000000000000        4.0000000000000002e-0
    +01           0x1.999999999999ap-2       +0x1.999999999999ap-0002    +
    +0d1.6000000000000001p-0002
    0.4   +ULP             0.4000000000000001        4.0000000000000008e-0
    +01           0x1.999999999999bp-2       +0x1.999999999999bp-0002    +
    +0d1.6000000000000003p-0002
    
  3. or download this
    0.5   -ULP             0.4999999999999999        4.9999999999999994e-0
    +01           0x1.fffffffffffffp-2       +0x1.fffffffffffffp-0002    +
    +0d1.9999999999999998p-0002
    0.5                    0.5000000000000000        5.0000000000000000e-0
    +01           0x1.0000000000000p-1       +0x1.0000000000000p-0001    +
    +0d1.0000000000000000p-0001
    0.5   +ULP             0.5000000000000001        5.0000000000000011e-0
    +01           0x1.0000000000001p-1       +0x1.0000000000001p-0001    +
    +0d1.0000000000000002p-0001
    
  4. or download this
    ...
    4.0   -ULP             3.9999999999999996        3.9999999999999996e+0
    +00           0x1.fffffffffffffp+1       +0x1.fffffffffffffp+0001    +
    +0d1.9999999999999998p+0001
    ...
    4.1   -ULP             4.0999999999999988        4.0999999999999988e+0
    +00           0x1.0666666666665p+2       +0x1.0666666666665p+0002    +
    +0d1.0249999999999997p+0002
    4.1                    4.0999999999999996        4.0999999999999996e+0
    +00           0x1.0666666666666p+2       +0x1.0666666666666p+0002    +
    +0d1.0249999999999999p+0002
    4.1   +ULP             4.1000000000000005        4.1000000000000005e+0
    +00           0x1.0666666666667p+2       +0x1.0666666666667p+0002    +
    +0d1.0250000000000001p+0002
    
  5. or download this
    ...
    10.0  -ULP             9.9999999999999982        9.9999999999999982e+0
    +00           0x1.3ffffffffffffp+3       +0x1.3ffffffffffffp+0003    +
    +0d1.2499999999999998p+0003
    ...
    1024.0+ULP          1024.0000000000002000        1.0240000000000002e+0
    +03          0x1.0000000000001p+10       +0x1.0000000000001p+0010    +
    +0d1.0000000000000002p+0010
    
    approx                            %30.16f                        %30.1
    +6e                             %a         to_hex_floatingpoint()     
    +    to_dec_floatingpoint()