[Top][All Lists]

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

Re: printf

From: Jim Meyering
Subject: Re: printf
Date: Sat, 18 Aug 2001 10:06:14 +0200
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.105

"Phil E. Fraley" <address@hidden> wrote:

> result:
> /home/pef/magd>printf "%.6f\n" "320./57."
> printf: 320./57.: value not completely converted
> 320.000000

I don't see a problem.
Did you expect it to do the division for you?
printf doesn't do that.

You could use bc to do the arithmetic and printing:

  $ echo 'scale=6;320/57'|bc

reply via email to

[Prev in Thread] Current Thread [Next in Thread]