[Top][All Lists]

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

[Octave-bug-tracker] [bug #51515] sprintf not rounding correctly

From: Luis Mendo
Subject: [Octave-bug-tracker] [bug #51515] sprintf not rounding correctly
Date: Thu, 20 Jul 2017 04:52:36 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36


                 Summary: sprintf not rounding correctly
                 Project: GNU Octave
            Submitted by: lmendo
            Submitted on: Thu 20 Jul 2017 08:52:34 AM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: lmendo
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.3
        Operating System: GNU/Linux



For example,

sprintf('%1.1g', 2.5)

gives 2 instead of 3. It gives 3 in Matlab.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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