X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=type%2Fcentcount.py;fp=type%2Fcentcount.py;h=4e5b8a6aa6b4b8ef61671b93b0284825cdf75cbc;hb=83c1e0d04fe2e78963c8b508e8b7d0ae03bfcb16;hp=ce18975167573a236cf2a9ee3f04604333d9c82d;hpb=6f132c0342ab7aa438ed88d7c5f987cb52d8ca05;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__ (