[geeks] expr and math
Scott Howard
scott at doc.net.au
Tue Sep 21 18:20:14 CDT 2004
On Tue, Sep 21, 2004 at 03:59:26PM -0400, Sandwich Maker wrote:
> " If you want unlimited precision math, use bc
>
> or, in ksh, $(( )):
>
> print $((90 * 1000000000))
>
> works fine. and of course for you douglas adams fans,
ksh% print $((90 * 1000000000000))
90000000000000
ksh% print $((90 * 100000000000000000))
9000000000000000000
ksh% print $((90 * 10000000000000000000000))
1803387784686206976
Scott
More information about the geeks
mailing list