mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-24 04:25:08 +02:00
Fixing bug in test for comparing 0.0.
This commit is contained in:
parent
1d252ae893
commit
5731ff73f7
1 changed files with 2 additions and 2 deletions
|
@ -249,8 +249,8 @@
|
||||||
(cond
|
(cond
|
||||||
((> (abs a) (abs b))
|
((> (abs a) (abs b))
|
||||||
(approx-equal? b a epsilon))
|
(approx-equal? b a epsilon))
|
||||||
((zero? b)
|
((zero? a)
|
||||||
(< (abs a) epsilon))
|
(< (abs b) epsilon))
|
||||||
(else
|
(else
|
||||||
(< (abs (/ (- a b) b)) epsilon))))
|
(< (abs (/ (- a b) b)) epsilon))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue