#!usr/bin/perl
print "Enter temperature in Fahrenheit";
$temp=<STDIN>;
chomp $temp;
$newtemp =((($temp-32)*5)/int(9));
print "Temperature in Celsius is $newtemp\n";
if i enter 75 fahrenheit, the answer is23.8888888888889
. How can i print the amount with no more than 2 decimal
places without using printf and sprintf.
thank you
In reply to perl newbie question by john83reuben
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |