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.

The sale price.

If the contribution ratio is equal to 1.0, the calculation cannot be made.

The idg function is the inverse of the dg function.

// Returns the value 1000.
idg(300,0.7);
 
// Returns the value 20000.
idg(11000,0.45);

Community Additions

ADD
Show: