Abs Function [Runtime]/text/sbasic/shared/03080601.xhpSun Microsystems, Inc.converted from old format - fpeAbs functionAbs Function [Runtime]Returns the absolute value of a numeric expression.Syntax:Abs (Number)Return value:DoubleParameters:Number: Any numeric expression that you want to return the absolute value for. Positive numbers, including 0, are returned unchanged, whereas negative numbers are converted to positive numbers.The following example uses the Abs function to calculate the difference between two values. It does not matter which value you enter first.Example:Sub ExampleDifferenceDim siW1 As SingleDim siW2 As SinglesiW1 = Int(InputBox$ ("Please enter the first amount","Value input"))siW2 = Int(InputBox$ ("Please enter the second amount","Value input"))Print "The difference is "; Abs(siW1 - siW2)End Sub