formatDoubleFromAmount method
Converts the int into a double, dividing by 10^scale.
Example:
12345.formatDoubleFromAmount(2); // 123.45
1200.formatDoubleFromAmount(0); // 1200.0
Implementation
double formatDoubleFromAmount(scale) {
double correctAmount = this / (pow(10, scale));
return correctAmount;
}