Hacker News new | ask | show | jobs
by doc_holliwould 1894 days ago
say (1/10+1/10).WHAT; say (1/6+1/6).WHAT;

both are Rats, they just get stringified differently

1 comments

They stringify differently because 2/10 can be expressed exactly in NNN.MMM format, whereas 1/3 can not.