+ Reply to Thread
Results 1 to 3 of 3

Please explain this phenomena of rounding / display issues

  1. #1
    Forum Contributor
    Join Date
    12-20-2011
    Location
    United States, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    295

    Please explain this phenomena of rounding / display issues

    This is weird and driving me crazy!!!

    Can some PELASE explain this phenomena.

    A1 = 122775.54 (even displayed on screen as 122775.54000000000000000000000000000000000)
    A2 = 122774.75 (even displaved on screen as 122774.75000000000000000000000000000000000)


    A4 = A1-A2


    Result, as displayed on screen = 0.789999999993597.
    WHAT?? HOW!?

    Should simply be 0.79.

    All formats are in "General" format. So it is not a display issue. General should display all values.
    Attached Files Attached Files
    Last edited by clemsoncooz; 02-21-2012 at 03:16 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Please explain this phenomena of rounding / display issues

    This is a fairly well known phenomenon associated with the way Excel (and other software) deals with decimals and floating point numbers.

    See Chip Pearson's article http://www.cpearson.com/excel/rounding.htm

    For your subtraction result you'll need to wrap it in an =ROUND(A1-A2,2) function

    Regards
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    12-20-2011
    Location
    United States, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    295

    Re: Please explain this phenomena of rounding / display issues

    wow....

    Thank you Richard Buttrey. Appreciate your direction.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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