in reply to Re^2: printf rounding issue
in thread printf rounding issue
$val = $val * 100 ; $val = $val / 100;
from the thread:
The shift must be a string operation. Dividing by 100 reintroduces the problem with floats!
> My issue is why I am getting different values when I am using print and printf
as Eily already told you, you are rounding in printf at the second position not the third.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
|
|---|