mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-21 05:43:10 -07:00
Use BASEXPWR instead of passing BASEX into log2 (#1940)
This commit is contained in:
parent
0990046d8d
commit
5963568096
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ void ChangeConstants(uint32_t radix, int32_t precision)
|
|||
// in the internal BASEX radix, this is important for length calculations
|
||||
// in translating from radix to BASEX and back.
|
||||
|
||||
g_ratio = static_cast<int32_t>(ceil(log2(BASEX) / log2(radix))) - 1;
|
||||
g_ratio = static_cast<int32_t>(ceil(BASEXPWR / log2(radix))) - 1;
|
||||
|
||||
destroyrat(rat_nRadix);
|
||||
rat_nRadix = i32torat(radix);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue