GnuCash
2.6.99
|
Public Member Functions | |
def | __init__ |
def | __unicode__ |
def | __str__ |
Public Member Functions inherited from python-bindings.gnucash_core.GnuCashCoreClass | |
def | do_lookup_create_oo_instance |
Object used by GnuCash to store all numbers. Always consists of a numerator and denominator. The constants GNC_DENOM_AUTO, GNC_HOW_RND_FLOOR, GNC_HOW_RND_CEIL, GNC_HOW_RND_TRUNC, GNC_HOW_RND_PROMOTE, GNC_HOW_RND_ROUND_HALF_DOWN, GNC_HOW_RND_ROUND_HALF_UP, GNC_HOW_RND_ROUND, GNC_HOW_RND_NEVER, GNC_HOW_DENOM_EXACT, GNC_HOW_DENOM_REDUCE, GNC_HOW_DENOM_LCD, and GNC_HOW_DENOM_FIXED are available for arithmetic functions like GncNumeric.add Look at gnc-numeric.h to see how to use these
Definition at line 259 of file gnucash_core.py.
def python-bindings.gnucash_core.GncNumeric.__init__ | ( | self, | |
num = 0 , |
|||
denom = 1 , |
|||
kargs | |||
) |
Constructor that allows you to set the numerator and denominator or leave them blank with a default value of 0 (not a good idea since there is currently no way to alter the value after instantiation)
Definition at line 274 of file gnucash_core.py.
def python-bindings.gnucash_core.GncNumeric.__str__ | ( | self | ) |
returns a human readable numeric value string as bytes.
Definition at line 295 of file gnucash_core.py.
def python-bindings.gnucash_core.GncNumeric.__unicode__ | ( | self | ) |
Returns a human readable numeric value string as UTF8.
Definition at line 286 of file gnucash_core.py.