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 <santu...@gmail.com> wrote: > 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 <rudolf.syk...@gmail.com> > 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, > santucco > >