|
MKI_ConvertDoubleStringEx (Strings) Changed in Version 2026.0 |
www.CAD6.com |
C++ Syntaxbool MKI_ConvertDoubleStringEx( LPWSTR f_pszText, const size_t f_unMaxSize, double f_dValue, __int32 f_nFractionLen );
template <size_t f_unSize> bool MKI_ConvertDoubleStringEx( wchar_t (&f_rDestin)[f_unSize], double f_dValue, __int32 f_nFractionLen );
Converts a double value to a string with a given maximum length and precision.
Parametersf_pszText / f_rDestin [LPWSTR] Pointer to or [wchar_t[]&] Reference to text buffer to receive the converted double string. f_unMaxSize [const size_t] Maximum allowed length of the destination text in UTF-16 characters including the terminating '\0' character. f_dValue [double] Floating point value to be converted into a string. f_nFractionLen [__int32] Maximum number of fractional digits. Allowed values are 0 to 15. Whether trailing zeros are displayed or not depends on the application's settings.
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