If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

rounding

I have apayroll check calculation that is gross to net. however there is
a need to round to dollars/cents. tried rounding to 2 decimals - property
= currency etc I think these functions may be in the wrong place. In form
load?? In the cmdcalculate??

Re: rounding

I think you should store your numbers in variables declared as Currency. Now
that holds 4 decimal places which I think you should leave. When you display
the number, round it for display at that point using Format$(YourValue,
"currency") or Format$(YourValue, "$0.00") depending on your version of VB
(substituting your local currency symbol in the 2nd form of Format$ if
required).

Rick

"RAFrede" <rafoakland@worldatt.net> wrote in message
news:392ed4fb$1@news.devx.com...
>
> I have apayroll check calculation that is gross to net. however there is
> a need to round to dollars/cents. tried rounding to 2 decimals - property
> = currency etc I think these functions may be in the wrong place. In
form
> load?? In the cmdcalculate??