[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Formating a $variable??



I need some help.

I know you can nicely format an output with printf (or sprintf) but is there
a way to format a variable?

ex.
$total = 150.6666666
I want $total to be 150.67

Thanks



Thierry Lˇv¸que
leveque@mediafusion.ca
Mˇdiafusion Inc.
1755 Renˇ-Lˇvesque Est, #203
Montreal (Quebec)   H2K 4P6
Tel. (514) 599-5721
Fax. (514) 599-5729
www.mediafusion.ca

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org