Click or drag to resize

SetMath Function

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.19
Syntax
 FUNCTION SetMath() AS DWORD
Request Example View Source

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