bc or dc

johnl at haddock.UUCP johnl at haddock.UUCP
Thu Jul 5 13:42:53 AEST 1984


>How does one do a division and get a floating point answer?

Why, one reads the manual pages, wherein it is clearly stated that
you use a "k" command in dc or the equivalent "scale = N" in bc to
set the number of digits retained.  The section 2 articles on bc
and dc discuss the interpretation of scale factor in some detail.

Dyspeptically,
John Levine, ima!johnl



More information about the Comp.unix mailing list