X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=type%2Fcentcount.py;h=4e5b8a6aa6b4b8ef61671b93b0284825cdf75cbc;hb=0df075ce2ba86c529fe6fb73b4058c5cf20ff94c;hp=ce18975167573a236cf2a9ee3f04604333d9c82d;hpb=a08ca309cb5bd7971210a9247a38c9bbe376a6e6;p=python_utils.git diff --git a/type/centcount.py b/type/centcount.py index ce18975..4e5b8a6 100644 --- a/type/centcount.py +++ b/type/centcount.py @@ -11,7 +11,8 @@ T = TypeVar('T', bound='CentCount') class CentCount(object): """A class for representing monetary amounts potentially with - different currencies. + different currencies meant to avoid floating point rounding + issues by treating amount as a simple integral count of cents. """ def __init__ (