On Sep 22 2025, Duncan Roe via Bug reports for the GNU Bourne Again SHell wrote:

> $ printf '%g\n' $(fltexpr -p '0.1 + 0.2')
> 0.3

That is wrong for a value that needs more than 6 digits of precision.

-- 
Andreas Schwab, [email protected]
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

  • Re: About fltexp... pourko--- via Bug reports for the GNU Bourne Again SHell
    • Re: About f... Oğuz
      • Re: Abo... pourko--- via Bug reports for the GNU Bourne Again SHell
        • Re:... Duncan Roe via Bug reports for the GNU Bourne Again SHell
          • ... pourko--- via Bug reports for the GNU Bourne Again SHell
            • ... Duncan Roe via Bug reports for the GNU Bourne Again SHell
            • ... pourko--- via Bug reports for the GNU Bourne Again SHell
            • ... Duncan Roe via Bug reports for the GNU Bourne Again SHell
            • ... Andreas Schwab
            • ... Chet Ramey
    • Re: About f... Andreas Schwab
  • Re: About fltexp... pourko--- via Bug reports for the GNU Bourne Again SHell
    • Re: About f... Lawrence Velázquez
      • Re: Abo... pourko--- via Bug reports for the GNU Bourne Again SHell
        • Re:... Lawrence Velázquez
          • ... pourko--- via Bug reports for the GNU Bourne Again SHell
            • ... Lawrence Velázquez
            • ... pourko--- via Bug reports for the GNU Bourne Again SHell
            • ... Chet Ramey

Reply via email to