"Phil E. Fraley" <[EMAIL PROTECTED]> 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
  5.614035

_______________________________________________
Bug-sh-utils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-sh-utils
  • printf Phil E. Fraley
    • Jim Meyering

Reply via email to