in reply to Re^2: Calculations using values from two different hashes
in thread Calculations using values from two different hashes

does the "%.2f" part of the code specify that only the first two decimal places should be returned?

Yes.
More strictly speaking the returned value will be the actual value, rounded to two decimal places in accordance with the rule "round to nearest, ties to even".
C:\>perl -le "printf '%.2f', 0.245;" 0.24 C:\>perl -le "printf '%.2f', 0.255;" 0.26
Cheers,
Rob

Replies are listed 'Best First'.
Re^4: Calculations using values from two different hashes
by Maire (Scribe) on Nov 25, 2017 at 13:30 UTC
    Ah, okay. Thanks!