|Subject:||GetNumberFormat - without decimals ?|
|Posted by:||R.Wieser (addre…@not.available)|
|Date:||Sat, 4 Apr 2020|
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 ?