powers_table.h 602 B

12345678910111213141516171819202122232425262728
  1. #ifndef _POWERS_TABLE_H
  2. #define _POWERS_TABLE_H
  3. #define POWERS_COUNT 20
  4. static const unsigned long powers_table[POWERS_COUNT][2] = {
  5. {1UL, 0},
  6. {10UL, 1},
  7. {100UL, 2},
  8. {1000UL, 3},
  9. {10000UL, 4},
  10. {100000UL, 5},
  11. {1000000UL, 6},
  12. {10000000UL, 7},
  13. {100000000UL, 8},
  14. {1000000000UL, 9},
  15. {10000000000UL, 10},
  16. {100000000000UL, 11},
  17. {1000000000000UL, 12},
  18. {10000000000000UL, 13},
  19. {100000000000000UL, 14},
  20. {1000000000000000UL, 15},
  21. {10000000000000000UL, 16},
  22. {100000000000000000UL, 17},
  23. {1000000000000000000UL, 18},
  24. {10000000000000000000UL, 19}
  25. };
  26. #endif