bug-bash
[Top][All Lists]
Advanced

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

Re: fltexpr_strtod range error seems bad


From: Chet Ramey
Subject: Re: fltexpr_strtod range error seems bad
Date: Wed, 9 Jul 2025 09:40:16 -0400
User-agent: Mozilla Thunderbird

On 7/8/25 8:32 PM, Isabella Bosia wrote:
$ fltexpr -p inf
inf
$ fltexpr -p 10**10000
inf
$ fltexpr -p 1e10000
bash: fltexpr: 1e10000: number out of range (error token is "1e10000")

can you just ignore erange?  strtod returns an infinity in that case

What do you propose? Catch HUGE_VAL/ERANGE and convert to Inf?


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



reply via email to

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