GJT
Registered User.
- Local time
- Today, 21:14
- Joined
- Nov 5, 2002
- Messages
- 116
I have come across a confounding problem....!!!
i have an invoice form that displays the sub-total / VAT / and Total fields. All of these are text boxes having the 'Fix' format type and 2 decimal places. Using the following values :
Sub total = 4547
VAT (@17.5%) = 795.725
this displays as 795.72 - when you put the cursor in the field it expands and displays 795.725.
The total field sums the VAT and the subtotal fields thus :
4547+795.725 = 5342.725 however this displays in the field as 5342.73 - when you put the cursor in the field it expands and displays 5342.725!
Why has the VAT field rounded down and the Total field roundedup? These totals must add up correctly!
Any ideas?
i have an invoice form that displays the sub-total / VAT / and Total fields. All of these are text boxes having the 'Fix' format type and 2 decimal places. Using the following values :
Sub total = 4547
VAT (@17.5%) = 795.725
this displays as 795.72 - when you put the cursor in the field it expands and displays 795.725.
The total field sums the VAT and the subtotal fields thus :
4547+795.725 = 5342.725 however this displays in the field as 5342.73 - when you put the cursor in the field it expands and displays 5342.725!
Why has the VAT field rounded down and the Total field roundedup? These totals must add up correctly!
Any ideas?