+ Reply to Thread
Results 1 to 5 of 5

Is this a bug in the Log functions?

  1. #1
    Registered User
    Join Date
    08-20-2011
    Location
    Geneva, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    9

    Question Is this a bug in the Log functions?

    Hi all

    My first post here, as I came across this site while trying to understand what may be a bug in Excel 2010 with Logarithmic functions.

    The attached excel file shows the behaviour. In short, log calculations for the value of 1 do not give 0 as a result when the value has been calculated by repeated additions from previous cells. The number of cells added up before the beahviour starts is dependent on the amount being added.

    For instance, getting to 1 by adding 0.1 repeatedly from 0.7 will give the erroneous result, but not by adding from 0.8 (more than 2 additions and it goes wrong). If you're adding 0.05, then you need to do more than 3 additions to get the erroneous behaviour.

    I suppose it's something to do with floating arithmetic and the way Excel handles real values, but haven't got the knowledge of the inners of Excel to know if this is a true "bug" or just "expected behaviour".

    Hope I've given enough information for you all to understand the issue and reply.

    Afzal
    Attached Files Attached Files
    Last edited by afzal@ballim.com; 08-21-2011 at 02:18 AM. Reason: neutralizing the thread

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Is this a bug in the Log functions?

    use round() and all your problems will go away!
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Is this a bug in the Log functions?

    And if your user name is your e-mail address, you are in for some spamming...

  4. #4
    Registered User
    Join Date
    08-10-2011
    Location
    Michigan, USA
    MS-Off Ver
    Excel 2007
    Posts
    47

    Re: Is this a bug in the Log functions?

    If you were satisfied with your answer please mark the thread solved, directions below:

    To mark your thread solved do the following:
    - Go to the first post
    - Click edit
    - Click Advance
    - Just below the word "Title:" you will see a dropdown with the word No prefix.
    - Change to Solve
    - Click Save
    When helped,use the icon right of the post #.

  5. #5
    Registered User
    Join Date
    08-20-2011
    Location
    Geneva, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Is this a bug in the Log functions?

    Quote Originally Posted by arthurbr View Post
    And if your user name is your e-mail address, you are in for some spamming...
    Can't find any way to change that or delete my account. Any sugestions?

    And thanks to those who have replied. Doesn't say if it is a bug or not but at least i have a work around.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1