in reply to Re: Help with decimals
in thread Help with decimals

Do you want the decimals even if they aren't siginficant? 2 zeros aren't significant. if you change the number to 1555, it will print 15.55. It just drops non significant digits.

Replies are listed 'Best First'.
Re: Re: Re: Help with decimals
by La12 (Sexton) on Jul 30, 2001 at 09:58 UTC
    yes I do. I understand 15 is the same as 15.00, but I need these zeros to remain in $foo's end result. The original digits in $foo must remain (i.e. $foo=1500 then result must have 1500 in it).
    I'm sorry, I did not try to use a different number in your script.