2 ms·
How would one implement locale-aware strtod() all by yourself from scratch?
by ridiculous_fish 3y ago
How would one implement locale-aware strtod() all by yourself from scratch?
- kazinator 3y agoUse the locale-unaware strtod. If the locale's decimal separator character isn't . (period) then filter the output of that to replace the period with that character.