Help for this page

Select Code to Download


  1. or download this
    $ perl -e 'printf "13.24 rounds to %.*f0\n", 1, 13.24';
    13.24 rounds to 13.20
    ...
    
    $ perl -e 'printf "13.26 rounds to %.*f0\n", 1, 13.26';
    13.26 rounds to 13.30
    
  2. or download this
    > say sprintf("13.24 rounds to %.*f0", 1, 13.24);
    13.24 rounds to 13.20
    ...
    
    > say sprintf("13.26 rounds to %.*f0", 1, 13.26);
    13.26 rounds to 13.30