R.Wieser
2020-04-04 16:19:01 UTC
Hello all,
I would like to display an (unsigned) integer number according to the
current locale, and thought "GetNumberFormatA" would do the job. Alas,
for some reason it always appends ".00", two fractional digits my integer
number does not have and I cannot use.
Although I've been able to fill in a "NUMBERFMTA" structure myself (six
GetLocalInfoA calls, plus parsing of the LOCALE_SGROUPING result), but that
takes quite a bit of work, as I've not seen a way to retirieve it directly.
Question: On XP, is there an easy way to get the "GetNumberFormatA" /not/ to
add decimals, or is there a way to retrieve the "NUMBERFMTA" data directly,
so I only have to set the "NumDigits" field to zero ?
Regards,
Rudy Wieser
I would like to display an (unsigned) integer number according to the
current locale, and thought "GetNumberFormatA" would do the job. Alas,
for some reason it always appends ".00", two fractional digits my integer
number does not have and I cannot use.
Although I've been able to fill in a "NUMBERFMTA" structure myself (six
GetLocalInfoA calls, plus parsing of the LOCALE_SGROUPING result), but that
takes quite a bit of work, as I've not seen a way to retirieve it directly.
Question: On XP, is there an easy way to get the "GetNumberFormatA" /not/ to
add decimals, or is there a way to retrieve the "NUMBERFMTA" data directly,
so I only have to set the "NumDigits" field to zero ?
Regards,
Rudy Wieser