News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Number Format

Started by cobold, July 29, 2008, 09:07:15 PM

Previous topic - Next topic

cobold

Hello,

Windows uses a "system number format" that is preset according to country.
f. ex. number format = "123.456.789,00" which means the dir-cmd or chkdsk-cmd etc. display 1000000 as 1.000.000

So I was looking for an api-routine to perform this number-formatting. Didn't find any.

Does anyone know, if there exists an api-function to perform number-formating?

Thanks in advance for replies!

rgds
cobold

Tedd

No snowflake in an avalanche feels responsible.

cobold

Quote from: Tedd on July 29, 2008, 09:20:51 PM
GetNumberFormat -- http://msdn.microsoft.com/en-us/library/ms776317.aspx

Thanks a lot for the fast reply! I LOVE this forum for all those helpfull people!

cobold

jj2007

Quote from: Tedd on July 29, 2008, 09:20:51 PM
GetNumberFormat -- http://msdn.microsoft.com/en-us/library/ms776317.aspx

Applications that are intended to run only on Windows Vista and later should use GetNumberFormatEx ...
However, GetNumberFormatEx is not supported for versions of Windows prior to Windows Vista.

Lovely! Vista only...