Help for this page

Select Code to Download


  1. or download this
    return sprintf("%.u" , ($1 - 32) / 1.8) . 'C'
    
  2. or download this
    return sprintf q{%.uC}, ( $1 - 32 ) / 1.8
    
  3. or download this
    $ perl -E 'say sprintf q{%.uC}, ( 75 - 32 ) / 1.8;'
    23C
    ...
    $ perl -E 'say sprintf q{%.1fC}, ( 75 - 32 ) / 1.8;'
    23.9C
    $