Skip to content

Commit

Permalink
IGNITE-22737 Cleanup comments in the platforms native code (#4087)
Browse files Browse the repository at this point in the history
Co-authored-by: dzabotlin <[email protected]>
  • Loading branch information
arcolight and dzabotlin authored Jul 15, 2024
1 parent bc6c427 commit ba16245
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions modules/platforms/cpp/ignite/common/big_decimal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,16 +188,6 @@ void big_decimal::multiply(const big_decimal &other, big_decimal &res) const {
res.m_scale = m_scale + other.m_scale;
}

// Let p1, s1 be the precision and scale of the first operand
// Let p2, s2 be the precision and scale of the second operand
// Let p, s be the precision and scale of the result
// Let d be the number of whole digits in the result
// Then the result type is a decimal with:
// d = p1 - s1 + s2
// s < max(6, s1 + p2 + 1)
// p = d + s
// p and s are capped at their maximum values

void big_decimal::divide(const big_decimal &other, big_decimal &res) const {
big_decimal v1 = *this;
big_decimal v2 = other;
Expand Down

0 comments on commit ba16245

Please sign in to comment.