Hacker News new | ask | show | jobs
by lucianp 4148 days ago
Interesting! I wonder what drove their decision to use rational number representation. Is it possible to turn this feature off and use floating point instead (for performance reasons, let's say)?
1 comments

IIRC, there's several numeric types that conform to the larger `Numeric` type family: `Rat`, `Int`, and `Num` (which is basically a float).

`Rat` is what falls out of the expressions the OP was working with, specifying you want `Num` is possible.