GJT
Registered User.
- Local time
- Today, 20:58
- Joined
- Nov 5, 2002
- Messages
- 116
I have a textbox on a form that calculates VAT for transactions whose controlsource property is :
=([txtSubtotal]*0.175)
The trouble I am having is with the rounding that seems takes place in the control. If the fractional part of a value is calcuated it is rounded in accordance with the following :
When the fractional part is exactly 0.5, control always rounds it to the nearest even number. (For example, 0.5 rounds to 0, and 1.5 rounds to 2).
i need to ensure that the VAT is rounded (either up/down) in ALL cases. Any ideas people?
Thanks
Guy
=([txtSubtotal]*0.175)
The trouble I am having is with the rounding that seems takes place in the control. If the fractional part of a value is calcuated it is rounded in accordance with the following :
When the fractional part is exactly 0.5, control always rounds it to the nearest even number. (For example, 0.5 rounds to 0, and 1.5 rounds to 2).
i need to ensure that the VAT is rounded (either up/down) in ALL cases. Any ideas people?
Thanks
Guy