Hacker News new | ask | show | jobs
by pavlov 3715 days ago
I guess "scale" here is log10 of the multiplier used in storing "amount".

So to convert the value back into the currency range, you're supposed to compute "amount / 10^scale".