Implemented count_digits for hex and started implementing digits2_base

This commit is contained in:
2022-02-15 11:13:15 +01:00
parent f9099ce6ee
commit 7115e09aca
2 changed files with 45 additions and 12 deletions

View File

@@ -5,7 +5,7 @@
using namespace const_fmt;
int main() {
constexpr auto s = "This is an integer: {:08b}, and this is a float: {:09.4b}"_const_fmt(125u, -86.2);
constexpr auto s = "This is an integer: {:08x}, and this is a float: {:09.4b}"_const_fmt(125u, -86.2);
// Convert s (with a type of 'std::array<char, N>') into something
// writable to std::cout