in reply to All Calculations Done with One Variable Give Integer Answers

There probably is no 'easy' solution. The problem is explained in perlfaq4. Read
perldoc -q "Why am I getting long decimals" perldoc -q "Does perl have a round"
Bill