Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement some comparisons and arithmetics for GncNumeric
Derive some numeric comparisons and arithmetics from Fraction class https://github.com/python/cpython/blob/3.7/Lib/fractions.py and general information from https://docs.python.org/3/library/numbers.html#numbers.Integral These methods are bound closer to the gnucash-C-api than those from the fraction class. This is not the full set of comparisons and arithmetics, needs to be extended. It would be good to extend tests to cover this.
- Loading branch information
1 parent
5388cc8
commit 567df27
Showing
1 changed file
with
134 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters