Abs()
语法
Result.f = Abs(Number.f)概要
Returns the absolute value of the given float value.
参数
Number.f The number from which to get the absolute value. This function will only work correctly with float numbers. With integers, it will fail if the integer is too large (due to a loss of precision).
返回值
Returns the absolute value. The return-value is always positive.
Remarks
This function can handle float and double values.
示例
Debug Abs(3.14159) ; Will display '3.14159' Debug Abs(-3.14159) ; will display '3.14159'
参阅
Sign()
已支持操作系统
所有