octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #57663] printf output doc error


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #57663] printf output doc error
Date: Sat, 25 Jan 2020 14:20:12 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36

Follow-up Comment #3, bug #57663 (project octave):

Yes, I get the same, and this example also looks like it matches the current
documentation, right? I think your change makes the docs not agree with the
current behavior.


>> printf ("%.2g ",10.^(-6:6)/3)
3.3e-07 3.3e-06 3.3e-05 0.00033 0.0033 0.033 0.33 3.3 33 3.3e+02 3.3e+03
3.3e+04 3.3e+05


In this example, the precision is 2 digits. The style of "%e" is used when the
exponent is greater than or equal to 2 (e.g. "3.3e+02") or less than -4 (e.g.
"3.3e-05").

Do you see how that's different from the text you proposed?

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57663>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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