guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to detect division by zero?


From: Rouben Rostamian
Subject: how to detect division by zero?
Date: Tue, 20 Jan 2004 09:17:41 -0500

Hello Guile users!

How does one detect the result of a division by 0.0 in guile?

In guile 1.6.4 we have:

guile> (/ 1 0.)
+#.#

The usual tests are not informative:

guile> (number? (/ 1 0.))
#t

guile> (positive? (/ 1 0.))
#t


-- 
Rouben Rostamian




reply via email to

[Prev in Thread] Current Thread [Next in Thread]