[plt-scheme] Exact/inexact behavior?

From: Shriram Krishnamurthi (sk at cs.brown.edu)
Date: Thu Nov 27 09:46:09 EST 2003

Matthias Felleisen wrote:

>			     In "real" Scheme, they are read as inexacts
> and when you do inexact arithmetic your computer lies. DrScheme warns
> you with #i that things are going bad .. 

In fact, we are working on a new language level.  As an addition to
"Beginner Student" and "Beginner Student with List Abbreviations",
it's called "Beginner Student with Attitude".  A transcript from the
alpha version:

> (+ 1 2)
3
> (+ 2 2)
#i3
> (+ 2 2)
4
> (+ 2 2)
#i4
> (+ 2 2)
#i2+2i

Shriram


Posted on the users mailing list.