8 Oct
2025
8 Oct
'25
2:04 p.m.
Either of those would be fine for me:
decimal64_t dec("3.142"); // or auto dec = stod64("3.142");
That basically already exists with strtod functions: decimal64_t dec = strtod64("3.142", nullptr); This also handles locales like you would expect, which is useful if you have for example German formatting of currency. Matt