3 ms·
Why do so many languages not have a decimal type as a primitive value? Is it legacy? Is it because a decimal type must fundamentally be an object that wraps som
by seanalltogether 7y ago
Why do so many languages not have a decimal type as a primitive value? Is it legacy? Is it because a decimal type must fundamentally be an object that wraps some other primitive values?
- gdm85 7y agoLooks like Go v2 might get decimal floating point numbers support: https://github.com/golang/go/issues/19787 https://github.com/golang/go/issues/19787
- garyclarke27 7y agoPostgresql has an accurate decimal type that can handle any size or precision. Slower than Float or Integer but works fine in practice.