Hacker News new | ask | show | jobs
by singularity2001 1617 days ago

  >> Language that represent numbers as rationals
so π would be represented as π/1 or τ/2?

Also wouldn't it make comparisons quite expensive?

1 comments

I don't mind having option of purely symbolic computation but by default I don't want them.

Instead od Pi I'd prefer to have Pi(3) equal exactly 3.14, or Pi(2) equal exactly 3.1 and so on.

Since numbers would be kept as smallest numerator, denominator pair comparison would be just compaing those.