[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #61844] Incorrect number of digits printed by
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #61844] Incorrect number of digits printed by printf for "%20.15g" and "%20.17g" |
Date: |
Mon, 17 Jan 2022 14:30:28 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36 Edg/97.0.1072.55 |
Follow-up Comment #1, bug #61844 (project octave):
That looks correct to me. Why do you think this is wrong?
See e.g.: https://linux.die.net/man/3/sprintf
> This gives the minimum number of digits to appear for d, i, o, u, x, and X
conversions, the number of digits to appear after the radix character for a,
A, e, E, f, and F conversions, the maximum number of significant digits for g
and G conversions, or the maximum number of characters to be printed from a
string for s and S conversions.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61844>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/