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

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

[Octave-bug-tracker] [bug #53501] Wrong result: 1837.24+603.14=2440.4 in


From: Rik
Subject: [Octave-bug-tracker] [bug #53501] Wrong result: 1837.24+603.14=2440.4 instead of 2440.38
Date: Wed, 28 Mar 2018 11:54:03 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Update of bug #53501 (project octave):

                Category:             Performance => Interpreter            
                  Status:                    None => Invalid                
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #2:

This is just how the number is displayed.  The default format shows only 5
significant digits on the screen, but the full 16 digits are always kept. 
Take a look at the format() command with


help format


In this case, switch to a long format


format long
1837.24+603.14
ans =  2440.380000000000


This is not a bug.  Marking as invalid and closing report.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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