System.Math.Math.Truncate C# (CSharp) Method

Truncate() public static method

public static Truncate ( double d ) : double
d double
return double
		public static double Truncate (double d)
		{
			if (d > 0D)
				return Floor (d);
			else if (d < 0D)
				return Ceiling (d);
			else
				return d;
		}

Same methods

Math.Math::Truncate ( decimal d ) : decimal