number_format.h 414 B

123456789101112131415161718192021222324
  1. //
  2. // bigdecimal_format.h
  3. // bigdecimal
  4. //
  5. // Created by Sam Jaffe on 1/30/21.
  6. // Copyright © 2021 Sam Jaffe. All rights reserved.
  7. //
  8. #pragma once
  9. #include <limits>
  10. namespace math {
  11. struct number_format {
  12. bool separate_thousands;
  13. size_t decimal_precision;
  14. };
  15. constexpr number_format const default_fmt{
  16. .separate_thousands = false,
  17. .decimal_precision = std::numeric_limits<size_t>::max()};
  18. }