This documentation is archived and is not being maintained.
idg Function
Calculates the sale price based on the purchase price and the contribution ratio.
real idg(real purchase, real contribution_ratio)
|
Parameter
|
Description
|
|
purchase
|
The purchase price.
|
|
contribution_ratio
|
The contribution ratio.
|
If the contribution ratio is equal to 1.0, the calculation cannot be made.
The idg function is the inverse of the dg function.
-
idg(300,0.7); //Returns the value 1000.
-
idg(11000,0.45); //Returns the value 20000.