Help for this page

Select Code to Download


  1. or download this
    /* Gconvert:
     *    This preprocessor macro is defined to convert a floating point
    ...
     *        d_Gconvert='sprintf((b),"%.*g",(n),(x))'
     *    The last two assume trailing zeros should not be kept.
     */
    
  2. or download this
    $ perl -le 'printf "%.54g\n", 0.3;'
    0.29999999999999999
    
  3. or download this
    0.299999999999999988897769753748434595763683319091796875