Math.Sign
Imports System public class MainClass Shared Sub Main() Console.WriteLine(System.Math.Sign(-1)) Console.WriteLine(System.Math.Sign(0)) Console.WriteLine(System.Math.Sign(1)) End Sub End Class