My bad, I did'nt upgraded my source tree!
Sorry for the noise!
Le Tue, Jul 15, 2025 at 09:58:56AM -0400, Chet Ramey a écrit :
> On 7/15/25 7:33 AM, Félix Hauri wrote:
>
> >var=99;humanizeVar var;echo $var
> >90.95T
> > looks good, but
> >var=99;humanizeVarFact
On 7/15/25 7:33 AM, Félix Hauri wrote:
var=99;humanizeVar var;echo $var
90.95T
looks good, but
var=99;humanizeVarFactor=1000 humanizeVar var;echo $var
99.00T
should sow '100.00T' instead!
That's what I get on macOS.
--
``The lyf so short, the craft so long
Le Wed, Jul 09, 2025 at 09:40:16AM -0400, Chet Ramey a écrit :
> On 7/8/25 8:32 PM, Isabella Bosia wrote:
> > bash: fltexpr: 1e1: number out of range (error token is "1e1")
>
> What do you propose? Catch HUGE_VAL/ERANGE and convert to Inf?
Far before HUGE numbers, speaking about TERA, the
On 7/8/25 8:32 PM, Isabella Bosia wrote:
$ fltexpr -p inf
inf
$ fltexpr -p 10**1
inf
$ fltexpr -p 1e1
bash: fltexpr: 1e1: number out of range (error token is "1e1")
can you just ignore erange? strtod returns an infinity in that case
What do you propose? Catch HUGE_VAL/ERANGE a
$ fltexpr -p inf
inf
$ fltexpr -p 10**1
inf
$ fltexpr -p 1e1
bash: fltexpr: 1e1: number out of range (error token is "1e1")
can you just ignore erange? strtod returns an infinity in that case
in other interpreted languages, 1e1 is:
- inf in ksh93 and lua
- 'inf' in perl
- INF