bugGNU Octave - Bugs: bug #44272, dlmwrite makes inaccurate floating...

 
 

bug #44272: dlmwrite makes inaccurate floating point conversions

Submitted by:  None
Submitted on:  Mon 16 Feb 2015 12:01:46 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Inaccurate Result
Status: Wont FixAssigned to: None
Originator Name: LarsOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.8.1
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 16 Feb 2015 03:30:48 PM UTC, comment #1:

This is a consequence of the limited precision that all IEEE-754 floating point numbers have. In Octave, for example, try

On the other hand,

So the limited precision precision works both ways with dlmwrite/dlmread.

Rik <rik5>
Project Administrator
Mon 16 Feb 2015 12:01:46 PM UTC, original submission:

Hello,

results in "66.59399999999999"

I suspect their is an inaccuracy in floating point conversion. There are several specific floating point numbers with the same issue.

Operating system:
ubuntu 14.04, 64-bit

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #33101:  test.csv added by None (18B - application/x-csv)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 16 Feb 2015 03:30:48 PM UTCrik5StatusNone=>Wont Fix
      Open/ClosedOpen=>Closed
    Mon 16 Feb 2015 12:01:46 PM UTCNoneAttached File-=>Added test.csv, #33101

    Back to the top


    Powered by Savane 3.1-cleanup1