diff options
author | Andreas Schulz <ats@FreeBSD.org> | 1994-12-03 16:32:02 +0000 |
---|---|---|
committer | Andreas Schulz <ats@FreeBSD.org> | 1994-12-03 16:32:02 +0000 |
commit | d025cfd6c59d130adc2564d070c62a4a34cc0b3a (patch) | |
tree | 9865ff9a2b8a4cb420179d7515c23054699a7403 /gnu/usr.bin/dc | |
parent | e28b57d51bd2545eb005a0ffc0fb4a76686b8158 (diff) | |
download | src-test2-d025cfd6c59d130adc2564d070c62a4a34cc0b3a.tar.gz src-test2-d025cfd6c59d130adc2564d070c62a4a34cc0b3a.zip |
Notes
Diffstat (limited to 'gnu/usr.bin/dc')
-rw-r--r-- | gnu/usr.bin/dc/decimal.c | 6 | ||||
-rw-r--r-- | gnu/usr.bin/dc/decimal.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gnu/usr.bin/dc/decimal.c b/gnu/usr.bin/dc/decimal.c index 1fb95c18aa14..24f59eff9b7e 100644 --- a/gnu/usr.bin/dc/decimal.c +++ b/gnu/usr.bin/dc/decimal.c @@ -119,7 +119,7 @@ decimal_copy_1 (b, digits) return result; } else - return decimal_round_digits (b, digits); + return decimal_trunc_digits (b, digits); } /* flush specified number `digits' of trailing fraction digits, @@ -858,8 +858,8 @@ decimal_div (b1, b2, digits) return decimal_copy (DECIMAL_ZERO); } - if (lengthr <= (length1 - length2)) - abort(); /* My reasoning says this cannot happen, I hope */ +/* if (lengthr <= (length1 - length2)) + abort(); */ /* My reasoning says this cannot happen, I hope */ for (i = length1 - length2; i >= 0; i--) { diff --git a/gnu/usr.bin/dc/decimal.h b/gnu/usr.bin/dc/decimal.h index 2b41158166a2..49f749d40f65 100644 --- a/gnu/usr.bin/dc/decimal.h +++ b/gnu/usr.bin/dc/decimal.h @@ -84,7 +84,7 @@ typedef struct decimal *decimal; decimal decimal_add (), decimal_sub (), decimal_mul (), decimal_div (); decimal decimal_mul_dc (), decimal_mul_rounded (), decimal_rem (); -decimal decimal_round_digits (); +decimal decimal_round_digits (), decimal_trunc_digits (); decimal make_decimal (), decimal_copy (), decimal_parse (); decimal decimal_sqrt (), decimal_expt (); |