Functions.Abs 方法 |
命名空间: XSharp.RT
1nNum1 := 100 2nNum2 := 150 3? nNum1 - nNum2 // -50 4? ABS(nNum1 - nNum2) // 50 5? ABS(nNum2 - nNum1) // 50 6? ABS(-12) // 12 7? ABS(0) // 0 8nSouth := -5 9nNorth := 4 10? ABS(nSouth) - ABS(nNorth) // 1 11? ABS(nSouth) > ABS(nNorth) // TRUE 12? nSouth > nNorth // FALSE