bugGNU Octave - Bugs: bug #37402, sums to 1 involving decimals have...

 
 

bug #37402: sums to 1 involving decimals have odd type behavior

Submitted by:  None
Submitted on:  Wed 19 Sep 2012 10:17:06 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Inaccurate Result
Status: InvalidAssigned to: None
Originator Name: Sean ScottOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.6.1
Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 20 Sep 2012 01:43:07 PM UTC, comment #1:

This is not a bug. Please read the following:

http://wiki.octave.org/FAQ#Why_is_this_floating_point_computation_wrong.3F

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Wed 19 Sep 2012 10:17:06 PM UTC, original submission:

Some expressions evaluate to an integer expression of 1; others do not.

For example,
x = .5+.4+.1 = 1
y = .2+.7+.1 = 1.00000
(y != 1) == FALSE

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jordigh (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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 20 Sep 2012 01:43:07 PM UTCjordighStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1