If rounding is allowed, then multiplication should (never?) overflow.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10135 57a11ea4-9604-0410-9ed3-97b8803252fd
-- re-order math to make overflow less like to occur
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10131 57a11ea4-9604-0410-9ed3-97b8803252fd
(this bug was introduced only recently, about a week ago, with the changes
to 128-bit intermediate calculations, and does not/should not affect any
actual users).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10130 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-06-30 Christian Stimming <stimming@tuhh.de>
* src/report/report-gnome/window-report.c: Add toolbar element for
saving the current report.
* src/report/report-system/report.scm, report-system.scm: Add
function for saving one particular report to the
~/.gnucash/saved-reports-1.8 file. Add extra menu only for
customized reports.
* src/scm/main-window.scm, src/scm/main.scm: Remove the previous
function for saving all reports since it is no longer necessary.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10127 57a11ea4-9604-0410-9ed3-97b8803252fd
replace it with standard grade-school long division
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10119 57a11ea4-9604-0410-9ed3-97b8803252fd
bug fix for large-number conversion
-- (there are still some bugs, and some print statements, which I'll
remove shortly)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10118 57a11ea4-9604-0410-9ed3-97b8803252fd
audit the math usage,
tweak the scrub routines to get rid of the no-root error message
(some debugging printfs remain, which I'll remove later)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10117 57a11ea4-9604-0410-9ed3-97b8803252fd
-- make subtract a special case of add (instead of copying code)
-- improve overflow characteristics of divide
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10101 57a11ea4-9604-0410-9ed3-97b8803252fd
-- try to avoid certain types of denominator overflows in addition
-- start implemented an add128 routine (not done)
-- white-space changes
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10100 57a11ea4-9604-0410-9ed3-97b8803252fd
(could cause overflow during certain pricing calculations)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10098 57a11ea4-9604-0410-9ed3-97b8803252fd
fix a cuple of places that should have used it.
Fix a hole in the division algo
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10097 57a11ea4-9604-0410-9ed3-97b8803252fd
an overflow condition in the function being tested that needs to be fixed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10096 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnc-module/gnc-module.scm: create (and export) a re-export macro
is guile doesn't already provide one. Then re-export the symbols
instead of exporting them. Fixes some deprecated guile warnings.
* src/guile-mappings.h: convert scm_gc_{un,}protect_object() back
to its pre-1.6 type for earlier guiles, but upconvert to the new
type to fix a deprecated warning. Note that g-wrap is still
outputting deprecated code.
* lots of other files:
convert scm_{un,}protect_object -> scm_gc_{un,}protect_object because
the former is now deprecated in guile. Fixes a bunch of
GUILE_WARN_DEPRECATED warnings (but probably not all of them).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10094 57a11ea4-9604-0410-9ed3-97b8803252fd
-- without it, the division tests fail
Also, cut out duplicated test code
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10093 57a11ea4-9604-0410-9ed3-97b8803252fd