Click or drag to resize

SetMath Function (DWord)

X#
Return and optionally change the setting that determines the internal operational characteristics of the underlying floating-point system.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.21
Syntax
 FUNCTION SetMath(
	nNewSetting AS DWORD
) AS DWORD
Request Example View Source

Parameters

nNewSetting
Type: DWord
One of the following values, indicating the type of math processor to be used:

Return Value

Type: DWord
If nNewSetting is not specified, SetMath() returns the current setting.
If nNewSetting is specified, the previous setting is returned.
Remarks
Examples
This example uses SetMath() to check the current setting against a value of 486:
X#
1IF SetMath() != 486
2    ? "Not a 486 unit"
3ENDIF
See Also