At 15.23 -0500 1999.03.03, Thierry Leveque wrote: >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 Yes, with sprintf. printf prints. sprintf returns a string. -- Chris Nandor mailto:pudge@pobox.com http://pudge.net/ %PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10 1FF77F13 8180B6B6']) ===== Want to unsubscribe from this list? ===== Send mail with body "unsubscribe" to macperl-request@macperl.org