I'm building a language tailored for business app and for long time I was thinking in make decimals the first-class treatment.
ie, when doing "total = 1.3 + 2 * 10%" all this is in decimal. To make float "total = 1.3f + 2f * 10%".
The reason is that most, if not all, the calculations in my life are around money. I only use floats because that is what every language make me do.
However, I wish to know how do this robustly. How not rely on hacks? How do this ok? I'm working in rust for this.