+ Reply to Thread
Results 1 to 3 of 3

Rounding decimals in a summ

  1. #1
    Francesco
    Guest

    Rounding decimals in a summ

    HI

    working on excel 2003

    this what I had set up in a macro

    (cell A1 as a value of 12,32)

    my macro:

    Dim timpt as long
    timpt = timpt + cells(1,1).value

    the result is 12,00

    What I would like and I cannot get it is to keep the decimals and not to
    have as a result a rounded number

    Any help will be appreciated
    Thanks
    Francesco

  2. #2
    Bob Phillips
    Guest

    Re: Rounding decimals in a summ

    Dim timpt as Double
    timpt = timpt + cells(1,1).value

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "Francesco" <[email protected]> wrote in message
    news:[email protected]...
    > HI
    >
    > working on excel 2003
    >
    > this what I had set up in a macro
    >
    > (cell A1 as a value of 12,32)
    >
    > my macro:
    >
    > Dim timpt as long
    > timpt = timpt + cells(1,1).value
    >
    > the result is 12,00
    >
    > What I would like and I cannot get it is to keep the decimals and not to
    > have as a result a rounded number
    >
    > Any help will be appreciated
    > Thanks
    > Francesco




  3. #3
    Francesco
    Guest

    Re: Rounding decimals in a summ

    Thaks a lot Bob Finally I got the decimals displayed and not rounded
    have a nice day thanks again
    Francesco

    "Bob Phillips" wrote:

    > Dim timpt as Double
    > timpt = timpt + cells(1,1).value
    >
    > --
    > HTH
    >
    > Bob Phillips
    >
    > (remove nothere from email address if mailing direct)
    >
    > "Francesco" <[email protected]> wrote in message
    > news:[email protected]...
    > > HI
    > >
    > > working on excel 2003
    > >
    > > this what I had set up in a macro
    > >
    > > (cell A1 as a value of 12,32)
    > >
    > > my macro:
    > >
    > > Dim timpt as long
    > > timpt = timpt + cells(1,1).value
    > >
    > > the result is 12,00
    > >
    > > What I would like and I cannot get it is to keep the decimals and not to
    > > have as a result a rounded number
    > >
    > > Any help will be appreciated
    > > Thanks
    > > Francesco

    >
    >
    >


+ 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