[SunHELP] decimals and ksh division
sunhelp at sunhelp.org
sunhelp at sunhelp.org
Fri Oct 17 11:14:09 CDT 2003
Thanks. I found perl -e "print $NUM/10" worked too.
-----Original Message-----
From: Luc I. Suryo [mailto:luc at suryo.com]
Sent: Friday, October 17, 2003 12:06 PM
To: The SunHELP List
Subject: Re: [SunHELP] decimals and ksh division
> How can I show decimals in ksh?
>
> example:
> $ print $((45/10))
> 4
>
> I want to show
> 4.5
echo 45 10 | nawk '{printf("%0.2f\n", $1/$2);}'
will that work for you?
- ls
_______________________________________________
SunHELP maillist - SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp
More information about the SunHELP
mailing list