summaryrefslogtreecommitdiffstats
path: root/science/gchemutils/files/patch-programs-gchemcalc.cc
blob: 04da29c3633e0d7a845827005894aa8ae53f3499 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- programs/calc/gchemcalc.cc.orig Sat Feb 25 18:35:50 2006
+++ programs/calc/gchemcalc.cc  Mon Mar 20 18:22:41 2006
@@ -140,7 +140,7 @@
        } else {
            if (prec < 0) {
                // round the value to replace not significant figures by 0s.
-               double offs = pow10 (prec);
+               double offs = pow (10.0, prec);
                weight = rint (weight * offs) / offs;
            }
            format = artificial? g_strdup ("(%.0f)"): g_strdup ("%.0f");