3 ms·
> 令和_令_Reiwa_R twitch A classic which breaks lots of applications is the difference between number format "1,234.5" and "1.234,5" (some European countries).
by pjc50 2y ago
> 令和_令_Reiwa_R
twitch
A classic which breaks lots of applications is the difference between number format "1,234.5" and "1.234,5" (some European countries).
- Ylpertnodi 2y agoI've had to adust to/ accomodate the difference between 1. and 1, almost daily. Very expensive if you fuck up. Very embarrassing if you fuck up, too.
- simiones 2y agoI've actually been responsible some 10 years ago for introducing a bug like this in an official release of an industry-standard tool for a somewhat niche industry. Some SQL queries we were generating ended up saying `SELECT x FROM t WHERE x < 1,02` if run on an any system with commas as the decimal separator. We found it and fixed a few weeks later, and I don't think we've ever had a complaint from the field about this, but it was still pretty eye opening about locales. The extra irony is that me and my colleagues live in a country that actually has this kind of locale, but no one in the entire extended team was using it, everyone uses a US locale.
- pmontra 2y agoI think that in my country it's “1'234,5“. It was when I learned to write many years ago before computers were common.