2 ms·
The heading is misleading I think. Fractions have been in other programming languages for decades. There is nothing new about fractions. It is a basic feature o
by zelphirkalt 5y ago
The heading is misleading I think. Fractions have been in other programming languages for decades. There is nothing new about fractions. It is a basic feature of number systems in programming languages. It often helps with being precise in calculations. I've been using them for a long time in Scheme dialects.
The heading should be: "Finally a Golang library that retrofits Golang with a fractions datatype." -- relating only to Golang, instead of creating the wrong impression, that this is anything new in programming.
- Someone 5y agoNot even that. https://en.wikipedia.org/wiki/Rational_data_type#Language_support https://en.wikipedia.org/wiki/Rational_data_type#Language_su...: > Go provides rational numbers in the standard library, in the math/big package (https://pkg.go.dev/math/big#Rat https://pkg.go.dev/math/big#Rat)