in reply to Re: Padding with sprintf changing number
in thread Padding with sprintf changing number
This was the operation i was doing it before padding
print " Checking amnt before conversion $amt,\n"; $amt= sprintf("%.2f",$amt); print " Checking amnt after rounding $amt,\n"; $amt = $amt*100;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Padding with sprintf changing number
by haukex (Archbishop) on Sep 24, 2021 at 11:50 UTC | |
by syphilis (Archbishop) on Sep 24, 2021 at 13:45 UTC | |
by haukex (Archbishop) on Sep 24, 2021 at 14:44 UTC |
In Section
Seekers of Perl Wisdom