+ Reply to Thread
Results 1 to 3 of 3

Specifying number of decimals in a number

  1. #1
    allencr
    Guest

    Specifying number of decimals in a number

    When I type a number say 123.45678 and specify 3 decimals using Format ->
    cells -> Number Tab -> Number category my result is 123.457. I believe it
    should have been 123.456. Like wise if I specify 4 decimals I get 123.4568
    instead of 123.4567. What am I doing wrong? I am using Excel 2003 SP 2
    --
    Thanks
    Allen

  2. #2
    Forum Contributor
    Join Date
    03-23-2006
    Location
    Vancouver
    Posts
    114
    In Excel formatting, a number will always round up if the next decimal is 5 or greater, and will round down if the next decimal is less than 5.

    If you want to truncate numbers without rounding up, use a formula containing the
    =TRUNC function in, e.g. =TRUNC(123.4567,3)
    Last edited by CaptainQuattro; 07-01-2006 at 11:55 PM.

  3. #3
    allencr
    Guest

    RE: Specifying number of decimals in a number

    Sorry Folks
    Looks like the explanation is that Excel was rounding.
    --
    Thanks
    Allen


    "allencr" wrote:

    > When I type a number say 123.45678 and specify 3 decimals using Format ->
    > cells -> Number Tab -> Number category my result is 123.457. I believe it
    > should have been 123.456. Like wise if I specify 4 decimals I get 123.4568
    > instead of 123.4567. What am I doing wrong? I am using Excel 2003 SP 2
    > --
    > Thanks
    > Allen


+ 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