Use the Sign(Double) method to determine the sign of a Double value and display it to the console.
Class Sample
Public Shared Sub Main()
Dim xDouble1 As Double = 6.0
Console.WriteLine(xDouble1)
Console.WriteLine(Test(Math.Sign(xDouble1)))
End Sub
Public Shared Function Test([compare] As Integer) As [String]
If [compare] = 0 Then
Return "equal to"
ElseIf [compare] < 0 Then
Return "less than"
Else
Return "greater than"
End If
End Function
End Class