Skip to content

Commit

Permalink
update for macosx
Browse files Browse the repository at this point in the history
  • Loading branch information
fasiondog committed Aug 12, 2024
1 parent 100ac43 commit 6531963
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hikyuu/utilities/arithmetic.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ ValueT roundEx(ValueT number, int ndigits = 0) {
ValueT pow1, pow2, y, z;
ValueT x = number;
if (ndigits >= 0) {
pow1 = std::pow<ValueT>((ValueT)10.0, (ValueT)ndigits);
pow1 = std::pow<ValueT>(ValueT(10.0), ValueT(ndigits));
pow2 = 1.0;
y = (x * pow1) * pow2;
} else {
pow1 = std::pow<ValueT>((ValueT)10.0, (ValueT)-ndigits);
pow1 = std::pow<ValueT>(ValueT(10.0), ValueT(-ndigits));
pow2 = 1.0;
y = x / pow1;
}
Expand Down

0 comments on commit 6531963

Please sign in to comment.