$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!
In reply to Re^3: printf rounding issue
by LanX
in thread printf rounding issue
by vishy_acts
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |