Int64Static: Absolute |
Returns a new Int64 whose value is the absolute value of Value.
Public Function Absolute( ByRef Value As Int64 ) As Int64
The following code displays the absolute value of a give value.
Public Sub Main() PrintAbsolute CInt64(100) PrintAbsolute CInt64(-200) End Sub Private Sub PrintAbsolute(ByRef Value As Int64) Debug.Print CorString.Format("The absolute value of {0} is {1}.", Value, Int64.Absolute(Value)) End Sub 'This code produces the following. ' The absolute value of 100 is 100. ' The absolute value of -200 is 200.