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

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

[Octave-bug-tracker] [bug #38463] num2str output inconsistent with sprin


From: Nir Krakauer
Subject: [Octave-bug-tracker] [bug #38463] num2str output inconsistent with sprintf
Date: Mon, 04 Mar 2013 17:13:36 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3

URL:
  <http://savannah.gnu.org/bugs/?38463>

                 Summary: num2str output inconsistent with sprintf
                 Project: GNU Octave
            Submitted by: nir_krakauer
            Submitted on: Mon 04 Mar 2013 05:13:34 PM GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Nir Krakauer
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.2
        Operating System: GNU/Linux

    _______________________________________________________

Details:

num2str(5, "%2.0d")
returns
5
(no initial space)

sprintf("%2.0d", 5)
returns
 5
(with initial space, which is what would be expected)




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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