12 Oct
2025
12 Oct
'25
7:19 p.m.
Thank you. Anyway, I do not have access to IEEE 754. (Does anyone know if there are publicly available versions with similar content (like drafts of the C++ standard?)
I have access to decarith. It makes sense to expect and provide the behavior where the default textual representation preserves precision: this is compatible with the main goal of the type.
Precision and cohort retention are mutually exclusive
Can you explain why?
The easy answer is IEEE 754 section 5.12.2 says so. Consider decimal32_t which has precision 7. Imagine you specify to_chars with precision of 2 and cohort retention, but the value is in the cohort that needs 4 digits. What would you print? Matt