Skip to content

Flow documentation · legacy product

DiscountAmount ​

Declaration ​

Function DiscountAmount( aValue, aDiscPC : Extended) : Extended

Example ​

pascal
procedure OnMapEvent(var Value:Variant);
begin
  Value := DiscountAmount(100,10); //Value will be equal to 10
end;

Description ​

Discounted returns the dicount off aValue based on a discount percentage of aDiscPC. aDiscPC is given as a percentage and must be a value between 0 and 100 eg 12.5 is 12.5%