We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0990046 commit 5963568Copy full SHA for 5963568
src/CalcManager/Ratpack/support.cpp
@@ -136,7 +136,7 @@ void ChangeConstants(uint32_t radix, int32_t precision)
136
// in the internal BASEX radix, this is important for length calculations
137
// in translating from radix to BASEX and back.
138
139
- g_ratio = static_cast<int32_t>(ceil(log2(BASEX) / log2(radix))) - 1;
+ g_ratio = static_cast<int32_t>(ceil(BASEXPWR / log2(radix))) - 1;
140
141
destroyrat(rat_nRadix);
142
rat_nRadix = i32torat(radix);
0 commit comments