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

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

[Octave-bug-tracker] [bug #35894] dlmwrite writes number wrongly


From: anonymous
Subject: [Octave-bug-tracker] [bug #35894] dlmwrite writes number wrongly
Date: Mon, 19 Mar 2012 07:14:04 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.79 Safari/535.11

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

                 Summary: dlmwrite writes number wrongly
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Mon 19 Mar 2012 07:14:02 AM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Omer Sayli
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.1
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

Hi, 

When you try 

dlmwrite('out.txt', 64.6)

it writes 

64.59999999999999,

instead of exact 64.6. (64 is example, 64.1 and 64.9, 64.4 are alike in the
output file)

But if precicion is defined at least 3, it writes exact number. i.ie 
dlmwrite('out.txt', 64.6,'precision',3)






    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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