DecimalMath.Truncate Method

Calculates the integral part of a specified decimal number.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
public static decimal Truncate(
	decimal value
)

Parameters

value  Decimal
A number to truncate.

Return Value

Decimal
The integral part of value; that is, the number that remains after any fractional digits have been discarded.

See Also