Skip to content

Flow documentation · legacy product

TaxAmount ​

Declaration ​

Function TaxAmount( aValue, aTaxRate : Extended) : Extended

Example ​

pascal
procedure OnMapEvent(var Value:Variant);
begin
  Value := TaxAmount(120,12.5); //result is 15
end;

Description ​

TaxAmount returns the amount of tax in aValue at the tax rate of aTaxRate. aTaxRate is given as a percentage and must be a value between 0 and 100 eg 12.5 is 12.5%