Added a rule for valid float promotion when dividing.

This commit is contained in:
Vincent St-Amour 2010-06-28 16:17:37 -04:00
parent c6373ca7c0
commit 8ec6d7ff3f

View File

@ -115,6 +115,8 @@
(append (list (->* (list -Integer) -Integer -ExactRational))
(for/list ([t (list -ExactRational -Flonum)])
(->* (list t) t t))
;; only exact 0 as first argument can cause the result of a division involving inexacts to be exact
(list (->* (list -Flonum) -Real -Flonum))
(list (->* (list -Real) -Real -Real))
(list (->* (list N) N N))))]