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

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

[Octave-bug-tracker] [bug #44245] sprintf ("%0X", 15.2) prints floating


From: Rik
Subject: [Octave-bug-tracker] [bug #44245] sprintf ("%0X", 15.2) prints floating point number 15.2 rather than 'F'
Date: Fri, 13 Feb 2015 23:18:35 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)

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

                 Summary: sprintf ("%0X", 15.2) prints floating point number
15.2 rather than 'F'
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Fri 13 Feb 2015 03:18:34 PM PST
                Category: Octave Function
                Severity: 5 - Blocker
                Priority: 5 - Normal
              Item Group: Regression
                  Status: Confirmed
             Assigned to: jwe
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Real number input to sprintf, and presumably the other printf family of
functions, is passing through floating point numbers without modification.

In version 3.8.2 the sample code correctly prints 'F'.  This was first
discovered in a gnuplot bug report and it may be causing multiple problems in
the code base.

This is a blocker for the 4.0 release.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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