Skip to content

Commit

Permalink
Fix Log10 function (microsoft#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshkoon authored Feb 21, 2019
1 parent 24425c4 commit 32fb850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CalcManager/CEngine/scimath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 32fb850

Please sign in to comment.