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??
Printable View
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??
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??