projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
294f0e8
)
Fix thinko: INTEGER-ROUND was doing round-to-odd instead of
author
Chris Hanson
<org/chris-hanson/cph>
Sat, 3 May 1997 08:47:26 +0000
(08:47 +0000)
committer
Chris Hanson
<org/chris-hanson/cph>
Sat, 3 May 1997 08:47:26 +0000
(08:47 +0000)
round-to-even.
v7/src/runtime/arith.scm
patch
|
blob
|
history
diff --git
a/v7/src/runtime/arith.scm
b/v7/src/runtime/arith.scm
index c4ac23a017dbc0d87ae68eba442f6c730cb0b637..0948f678e55f5c24e05218b1c5ef81f3473daba6 100644
(file)
--- a/
v7/src/runtime/arith.scm
+++ b/
v7/src/runtime/arith.scm
@@
-1,6
+1,6
@@
#| -*-Scheme-*-
-$Id: arith.scm,v 1.3
8 1997/05/02 05:32:17
cph Exp $
+$Id: arith.scm,v 1.3
9 1997/05/03 08:47:26
cph Exp $
Copyright (c) 1989-97 Massachusetts Institute of Technology
@@
-299,7
+299,7
@@
MIT in each case. |#
(2r (int:* 2 (integer-divide-remainder qr))))
(if (or (int:> 2r d)
(and (int:= 2r d)
- (
fix:zero? (int:remainder q 2
))))
+ (
not (fix:zero? (int:remainder q 2)
))))
(int:1+ q)
q))))))
(if (int:negative? n)