function _getNumberOfPowersOfTen(value: number): number {
  return value && Math.floor(Math.log10(Math.abs(value)));
}
Calculate how many powers of 10 there are in a given number
I.e. 1.23 has 0, 100 and 999 have 2, and 1000 has 3.
Used in the inflation and rounding calculations below.