From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Wed, 12 May 2010 11:06:20 -0700 Message-ID: From: Akshat Kumar To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] hoc output format Topicbox-Message-UUID: 1f2b07f2-ead6-11e9-9d60-3106f5b1d025 I've found that awk(1) is more useful (rather, more powerful) for doing programmed computations (number crunching, etc.), where hoc(1) is more of a convenience for basic calculations. Best, ak On Wed, May 12, 2010 at 3:41 AM, Alexander Sychev wrot= e: > Hello! > > IFAIK, hoc(1) hasn't got such possibility. > awk(1) can help: > > $ hoc -e PI | awk '{printf "%2.2f", $0}' > 3.14 > > On Wed, 12 May 2010 14:24:57 +0400, Rudolf Sykora > wrote: > >> Hello everyone, >> >> is there any way to control the output format of hoc(1), i.e. e.g. the >> number of decimal places printed? >> >> Thanks >> Ruda > > > -- > Best regards, > =A0santucco > >