A 'Numeric' value represents a number in rational form, with a 64-bit integer as numerator and denominator. Rationals are ideal for many uses, such as performing exact, roundoff-error-free addition and multiplication, but 64-bit rationals do not have the dynamic range of floating point numbers.
See gncnumericexample
Files | |
file | gnc-numeric.h |
An exact-rational-number library for gnucash. (to be renamed qofnumeric.h in libqof2). | |
Data Structures | |
struct | _gnc_numeric |
Typedefs | |
typedef _gnc_numeric | gnc_numeric |
An rational-number type. |
|
An rational-number type. This is a rational number, defined by numerator and denominator. Definition at line 62 of file gnc-numeric.h. |