Re: fltexpr_strtod range error seems bad

2025-07-15 Thread Félix Hauri
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

Re: fltexpr_strtod range error seems bad

2025-07-15 Thread Chet Ramey
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

Re: fltexpr_strtod range error seems bad

2025-07-15 Thread Félix Hauri
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

Re: fltexpr_strtod range error seems bad

2025-07-09 Thread Chet Ramey
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_strtod range error seems bad

2025-07-08 Thread Isabella Bosia
$ 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