mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
add clarifying documentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10103 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
3ebf899792
commit
323c9afa3f
@ -176,7 +176,15 @@ gnc_numeric gnc_numeric_sub(gnc_numeric a, gnc_numeric b,
|
||||
gint64 denom, gint how);
|
||||
gnc_numeric gnc_numeric_mul(gnc_numeric a, gnc_numeric b,
|
||||
gint64 denom, gint how);
|
||||
gnc_numeric gnc_numeric_div(gnc_numeric a, gnc_numeric b,
|
||||
|
||||
/** Division. Note that division can overflow, in the following
|
||||
* sense: if we write x=a/b and y=c/d then x/y = (a*d)/(b*c)
|
||||
* If, after eliminating all common factors between the numerator
|
||||
* (a*d) and the denominator (b*c), then if either the numerator
|
||||
* and/or the denominator are *still* greater than 2^63, then
|
||||
* the division has overflowed.
|
||||
*/
|
||||
gnc_numeric gnc_numeric_div(gnc_numeric x, gnc_numeric y,
|
||||
gint64 denom, gint how);
|
||||
/** Negate the argument */
|
||||
gnc_numeric gnc_numeric_neg(gnc_numeric a);
|
||||
|
Loading…
Reference in New Issue
Block a user