Click or drag to resize

SetDecimalSep Function

Return and optionally change the setting that determines the decimal separation character to be used in numeric-to-string conversion functions.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.2a
Syntax
 FUNCTION SetDecimalSep() AS DWORD
View Source

Return Value

Type: UInt32
If <nNewSetting> is not specified, SetDecimalSep() returns the current setting.  If <nNewSetting> is specified, the previous setting is returned.
Remarks
Examples
This example changes the decimal separator from a period (.) to a comma (,):
X#
FUNCTION Start()
        LOCAL rPi := 3.14 AS REAL4
        SetDecimalSep(Asc(","))
        QOut(rPi)
See Also