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    c...@case.edu    http://tiswww.cwru.edu/~chet/

Reply via email to