Commit a372ec98 authored by Morten Welinder's avatar Morten Welinder

Rounding cleanup.

parent 1d3c4e4b
2014-04-02 Morten Welinder <terra@gnome.org>
* src/sf-gamma.c (pochhammer): Plain floor is good enough for
integer test.
2014-03-30 Morten Welinder <terra@gnome.org>
* src/application.c (gnm_app_remove_extra_ui): Remove from global
......
......@@ -123,7 +123,7 @@ get_amordegrc (gnm_float fCost, GDate *nDate, GDate *nFirstPer,
gint n;
gnm_float fAmorCoeff, fNRate, fRest, fUsePer;
#define Round(x,y) (gnm_floor ((x) + 0.5))
#define Round(x,y) (go_rint (x))
fUsePer = 1.0 / fRate;
......
......@@ -744,8 +744,8 @@ pochhammer (gnm_float x, gnm_float n)
if (n == 0)
return 1;
rx = gnm_floor (x + 0.5);
rn = gnm_floor (n + 0.5);
rx = gnm_floor (x);
rn = gnm_floor (n);
/*
* Use naive multiplication when n is a small integer.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment