From ef9c328ee198a9994db411edea93bbc1dd2e07b5 Mon Sep 17 00:00:00 2001 From: uhliksk <37454226+uhliksk@users.noreply.github.com> Date: Wed, 6 Mar 2019 22:07:03 +0100 Subject: [PATCH] Fix scientific notation for crypto currencies It's not helpful to calculate crypto currency values with scientific notation. All values up to 7 decimals should be in standard format. --- src/CalcManager/Ratpack/conv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CalcManager/Ratpack/conv.cpp b/src/CalcManager/Ratpack/conv.cpp index f7112bb4..48d389ee 100644 --- a/src/CalcManager/Ratpack/conv.cpp +++ b/src/CalcManager/Ratpack/conv.cpp @@ -22,7 +22,7 @@ using namespace std; -static constexpr int MAX_ZEROS_AFTER_DECIMAL = 2; +static constexpr int MAX_ZEROS_AFTER_DECIMAL = 7; // digits 0..64 used by bases 2 .. 64 static constexpr wstring_view DIGITS = L"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_@";