Re: printf issue with thousands separator

2022-07-05 Thread Martin Michel
Hi Jürgen, thanks for your quick reply. > I will look into adding support for the thousands separator (but not > supporting the > locales nonsense). That is, the thousands separator will always be comma and > not > e.g. full-stop like in some countries and comma in others. That would be great

Re: printf issue with thousands separator

2022-07-05 Thread Dr . Jürgen Sauermann
Hi Martin, I believe I understood your problem now. As far as ⎕FIO is concerned it should be fixed in SVN 1579:   "%'.2f" ⎕FIO.sprintf 1234567.89 1,234,567.89 There could be a misunderstanding as to how 'Format by ex

Re: printf issue with thousands separator

2022-07-05 Thread Martin Michel
Hi Jürgen, > I believe I understood your problem now. As far as ⎕FIO is concerned it > should be fixed > in SVN 1579: Many thanks, it's very impressive how fast you have implemented this change! > There could be a misunderstanding as to how 'Format by example' works (and > that misunderstandi

Re: printf issue with thousands separator

2022-07-05 Thread Christian Robert
Jürgen, #include #include int main(int argc, char *argv[]) { setlocale (LC_NUMERIC, "en_US.utf8"); printf("%'f\n", 55.66); } print: 555,555.66 my 2 cents... Xtian. On 2022-07-05 12:40, Dr. Jürgen Sauermann wrote: Hi Martin, I believe I understood your problem now. As fa