Leave a comment

Comments 3

anonymous January 15 2006, 14:09:39 UTC
Scheme represents rational fractions exactly, as a pair of integers, and the integers can be of arbitrary length. This is part of the language standard. So a Scheme interpreter makes a pretty good calculator. (You can cast numbers into floating-point form, but they're tagged as inexact to remind you.)

Reply

vruba January 15 2006, 21:11:35 UTC

Common Lisp does this too, and there’s a Ruby module for it. GMP has a nice-looking rational library. The idea seems to be catching on, and I’m glad.

Reply


notnotrebecca January 17 2006, 00:16:47 UTC
Nice. I didn't realize the answer to that question was going to be quite so involved, or how much I was going to learn about programming from this. Thanks for checking it out!

Reply


Leave a comment

Up