Int64Static: Absolute

Absolute

Returns a new Int64 whose value is the absolute value of Value.



 Public Function Absolute(
	  ByRef Value As Int64 ) As Int64

Parameters

Value
[ByRef] Int64. The value to return the absolute value of.

Return Values

Int64 -  The absolute value of Value.

Examples

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.

See Also

Project CorLib Overview

Class Int64Static Overview