Appearance
TaxExclusive
TaxExclusive takes the gross amount aValue, and returns the net amount exclusive of tax at the rate specified by aTaxRate.
The parameter aTaxRate is given as a percentage, and must be a value between 0 and 100 – e.g. 12.5 is 12.5%.
Declaration: Function TaxExclusive( aValue, aTaxRate : Extended) : Extended
Please refer to the following example.
pascal
Procedure OnMapEvent(var Value:variant);
begin
Value := TaxExclusive(3297.694,15); // returns 2867.56
Value := TaxExclusive(112.50,12.5); // returns 100
Value := TaxExclusive(-3297.694,15); // returns -2867.56
Value := TaxExclusive(75.45,15); // returns 65.6086956521739
end;
