I could never get the precision set right. It would either round to
the nearest ten, or there would be a decimal. After about ten minutes
of trying to make it output a value with length 0 and scale 1 or 2, I
used perl.
On 10/2/07, Szabolcs Nagy <nszabolcs_AT_gmail.com> wrote:
> On 10/2/07, Kurt H Maier <karmaflux_AT_gmail.com> wrote:
> > I'm not really happy with calling perl in battery.sh, but bc proved to
> > be enough of a turd that I won't use it. If anyone knows how to cast
> > floats to int in bash let me know. :V
>
> can i ask what was wrong with bc?
> bc is supposed to be simple and nice
>
>
-- # Kurt H MaierReceived on Tue Oct 02 2007 - 13:25:24 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:56:48 UTC