mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 06:13:14 -07:00
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.
This commit is contained in:
parent
1eb717f336
commit
ef9c328ee1
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
using namespace std;
|
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
|
// digits 0..64 used by bases 2 .. 64
|
||||||
static constexpr wstring_view DIGITS = L"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_@";
|
static constexpr wstring_view DIGITS = L"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_@";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue