3 ms·
It's not the definitive default number only because performance reasons and because of C influence in language design. If most languages had Decimals, I am sur
by Shorel 11y ago
It's not the definitive default number only because performance reasons and because of C influence in language design.
If most languages had Decimals, I am sure only C/C++/Java diehards would use ints/floats instead. In fact most modern scripted languages should have them.
Regarding go, as it is a relatively new language, and having to interact with databases, with Decimal being a fundamental SQL type, yes, it should have Decimal.
- kazinator 11y agoFloats are not for C/C++/Java diehards but for rather science, engineering, signal processing, financial modeling, computer graphics ...