[Openmcl-devel] Printing/Reading floats
Sven Van Caekenberghe
sven at beta9.be
Mon Mar 17 08:07:53 PST 2003
This is probably a silly question, but what is the right (portable cl)
way to print and read floats ?
? pi
3.141592653589793D0
? (prin1-to-string pi)
"3.141592653589793D0"
? (read-from-string *)
3.1415926944584456D0
19
?
As the previous transcript shows, a straightforward approach introduces
quite a large rounding error, is there another way to do the same thing
?
Thx,
Sven
--
Sven Van Caekenberghe - mailto:sven at beta9.be
Beta Nine - software engineering - http://www.beta9.be
.Mac - svc at mac.com - http://homepage.mac.com/svc
_______________________________________________
Openmcl-devel mailing list
Openmcl-devel at clozure.com
http://clozure.com/cgi-bin/mailman/listinfo/openmcl-devel
More information about the Openmcl-devel
mailing list