bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug fix for $((x**y)) algorithm on 64+ bits machines.


From: Chet Ramey
Subject: Re: Bug fix for $((x**y)) algorithm on 64+ bits machines.
Date: Wed, 28 Mar 2012 22:30:27 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2

On 9/19/11 2:35 PM, Stephane CHAZELAS wrote:

> FYI, ksh93 uses pow(3). So does zsh, but only in floating point
> mode.
> 
> Probably better and more efficient than reinventing the wheel.

Maybe, but since bash doesn't use floating point arithmetic, probably
not.


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]