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

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

[Octave-bug-tracker] [bug #51515] sprintf not rounding as Matlab does


From: Luis Mendo
Subject: [Octave-bug-tracker] [bug #51515] sprintf not rounding as Matlab does
Date: Thu, 20 Jul 2017 17:01:34 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36

Follow-up Comment #4, bug #51515 (project octave):

I tested with Matlab R2015b and R2016b, both on Windows. But I'm fairly
certain it's that way in other, older versions too.

I'm on R2015b now. The result of


sprintf ('%1.1g|', [2.5, -2.5, 3.5, -3.5])


is


3|-3|4|-4|




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51515>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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