2 ms·
The issue then is that there is no reasonable primitive format to store a “real number with a small decimal precision”. Arguably storing these as ints would be
by yoz-y 7y ago
The issue then is that there is no reasonable primitive format to store a “real number with a small decimal precision”. Arguably storing these as ints would be better but then everybody would need to agree on the denominator.
- protonfish 7y agoIt is frustrating (to me, at least) that there is no common primitive data type the stores precision. But it isn't rocket surgery to store two floating-points (a value and precision) in a structure and format it properly for display.