SetDecimalSep Function (DWord) | |
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.21
Syntax FUNCTION SetDecimalSep(
nNewSetting AS DWORD
) AS DWORD
public static uint SetDecimalSep(
uint nNewSetting
)
Request Example
View SourceParameters
- nNewSetting
- Type: DWord
An ASCII code representing the new decimal separator.
The initial default is 46, which is the ASCII code for the "." character.
Possible values are ASC(".") and ASC(",").
Return Value
Type:
DWord
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 (,):
1FUNCTION Start()
2 LOCAL rPi := 3.14 AS REAL4
3 SetDecimalSep(Asc(","))
4 QOut(rPi)
See Also