[gambit-list] (* n 1.0) works as an exact->inexact for all integer n:s except for 0, is that intended?

Mikael mikael.rcv at gmail.com
Fri Mar 7 10:11:15 EST 2014


Why this result of (haxor-exact->inexact 0), just curious, does the RNRS
dictate this?


(define (haxor-exact->inexact n) (* n 1.0))


(haxor-exact->inexact -1)    => -1*.*
(haxor-exact->inexact 0)     => 0
(haxor-exact->inexact 1)     => 1*.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20140307/a5ab4436/attachment.htm>


More information about the Gambit-list mailing list