Skip to content

Comment on The surprisingly difficult problem of user-defined order in SQL

Comments

Rationals are to decimals as arbitrary precision decimals are to binary floats.

Drill the junior devs: use decimals if you want accuracy.

What is unsaid with this: if you want accuracy with monetary representation.

Lots of problems out there where decimals are simply inappropriate.

One day, rational as a core type in postgres would be a nice addition. Rationals should belong as a core type in most every platform where general purpose compute can happen.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.