mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-21 22:59:16 +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
|
||||
((> (abs a) (abs b))
|
||||
(approx-equal? b a epsilon))
|
||||
((zero? b)
|
||||
(< (abs a) epsilon))
|
||||
((zero? a)
|
||||
(< (abs b) epsilon))
|
||||
(else
|
||||
(< (abs (/ (- a b) b)) epsilon))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue