mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-20 21:33:10 -07:00
Fix Log10 function (#27)
This commit is contained in:
parent
24425c48fb
commit
32fb8500cb
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ Rational RationalMath::Log(Rational const& rat, int32_t precision)
|
|||
|
||||
Rational RationalMath::Log10(Rational const& rat, int32_t precision)
|
||||
{
|
||||
return Log(rat, precision).Div(10, precision);
|
||||
return Log(rat, precision).Div(Rational{ ln_ten }, precision);
|
||||
}
|
||||
|
||||
Rational RationalMath::Invert(Rational const& rat, int32_t precision)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue