Math.Sign : Math « System « C# / C Sharp by API






Math.Sign

  
using System;

public class MainClass {
    public static void Main() {
        Console.WriteLine("Math.Sign(1) = {0}", Math.Sign(1));
        Console.WriteLine("Math.Sign(-1) = {0}", Math.Sign(-1));
        Console.WriteLine("Math.Sign(0) = {0}", Math.Sign(0));
    }
}

   
    
  








Related examples in the same category

1.Math.Abs
2.Math.Cos()
3.Math.Min
4.Math.PI
5.Math.Round
6.Math.Sin()
7.Math.Sqrt
8.Math.Tan()