Request About Exchanger

anyone please help me. 
default_sad.png


 
.rate = 1000;        // Exchange rate (1 point * rate = total PoDs)

 
Well.. You can make some modification.

Example:

Code:
input .@amount;
if (.rate > 0) {
    .@total = .@amount / .rate;
    .@remainder = .@amount % .rate;
} else {
    .@total = .@amount * .rate * -1;
}

OTHER CODE HERE

.rate = -1000; // if rate < 0 than total = amount * rate
 
Last edited by a moderator:
Back
Top