private static int ScaleOrder (long hi) { for (int i = TenPowersListLength - 1; i >= 0; i--) if (hi >= GetTenPowerOf (i)) return i + 1; return 1; }