hotfix (decimal scale)

This commit is contained in:
chertus 2018-07-24 14:43:48 +03:00
parent 02f016579c
commit af00724c52

View File

@ -144,7 +144,7 @@ public:
{
if (scale == 0)
return x;
return x / scale;
return x / getScaleMultiplier();
}
T fractionalPart(T x) const
@ -153,7 +153,7 @@ public:
return 0;
if (x < 0)
x *= -1;
return x % scale;
return x % getScaleMultiplier();
}
T maxWholeValue() const { return getScaleMultiplier(maxDecimalPrecision<T>() - scale) - 1; }