From 4a2b189a0794a8aeaebf99fc8be454808a7dc892 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Sun, 16 Mar 2025 23:21:20 +0000 Subject: [PATCH] diag: Format Price and Quantity w/ up to 6 decimal places --- src/lib/domain_model/common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/domain_model/common.h b/src/lib/domain_model/common.h index 9aa2dead5..5dea42192 100644 --- a/src/lib/domain_model/common.h +++ b/src/lib/domain_model/common.h @@ -112,5 +112,5 @@ using Quantity = CQuantity; using UserLogin = utils::ValueWrapper; } // namespace bts -FMT_IMPL(bts::Price, p, "{}", p.value()); -FMT_IMPL(bts::Quantity, q, "{}", q.full_value()); +FMT_IMPL(bts::Price, p, "{:.6f}", p.value()); +FMT_IMPL(bts::Quantity, q, "{:.6f}", q.full_value());