|
MKI_ConvertNumberString (Strings) Changed in Version 2026.0 |
www.CAD6.com |
C++ Syntaxbool MKI_ConvertNumberString( LPWSTR f_pszText, const size_t f_unMaxSize, __int64 f_nNumber );
template <size_t f_unSize> void MKI_ConvertNumberString( wchar_t (&f_rDestin)[f_unSize], __int64 f_nValue );
Converts a number to a string using thousands separators. This can be used to display numerical values that usually reach high values.
Parametersf_pszText / f_rDestin [LPWSTR] Pointer to or [wchar_t[]&] Reference to text buffer to receive the converted number string. The result will be in the format "-12,345,678". f_unMaxSize [const size_t] Maximum allowed length of the destination text in UTF-16 characters including the terminating '\0' character. f_nBytes [__int64] Integer number to be converted into a string.
Return ValueReturns true if successful. If false is returned, f_pszText is unchanged.
CommentThis conversion will consider the decimal separator defined by the user (point or comma).
|
CAD6interface 2026.0 - Copyright 2026 Malz++Kassner® GmbH