Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_math
discount/2
Description
discount/2 is an Erlang function exported by "age_math" module.
Calculates the discount value as percentage from a number value.
References
•fraction/2
Parameters
Name
Type
Percent
number()
Percentage as floating point.
Total
Total number
Result
Value or Type
-
Code Sample
> age_math:discount(12.55, 200). 174.9