------------------------------------------------ On Wed, 29 Jan 2003 14:02:47 -0000, "Jattie van der Linde" <[EMAIL PROTECTED]> wrote:
> c syntax equivalent: printf ("%3.0f",Value); /*if value = 123.456 result would be >123*/ > > What is the equivalent perl command outputting a floating point number without >decimals. I read telephone from the database and they print as 6704046.0 I want to >get rid of the .0 > Should work the same, perldoc -f printf , perldoc -f sprintf. Assuming you don't care, you could always turn it into an int, perldoc -f int http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]