AbsInt Function | |
Return the absolute value of a strongly typed numeric expression, regardless of its sign.
Namespace:
XSharp.Core
Assembly:
XSharp.Core (in XSharp.Core.dll) Version: 2.21
Syntax FUNCTION AbsInt(
liValue AS LONG
) AS LONG
public static int AbsInt(
int liValue
)
Request Example
View SourceParameters
- liValue
- Type: Long
The 32-bit integer to evaluate.
Return Value
Type:
Long
A positive number or 0.
Remarks
AbsInt() is the same as Abs() except that it is strongly typed.
For more information, see Abs().
Examples
These examples show typical results from AbsInt():
1LOCAL iNum1 := 100 AS INT
2LOCAL iNum2 := 150 AS INT
3? iNum1 - iNum2
4? AbsInt(iNum1 - iNum2)
5? AbsInt(iNum2 - iNum1)
6? AbsInt(-12)
7? AbsInt(0)
See Also