Decimal Math.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.3
C#
The integral part of value; that is, the number that remains after any fractional digits have been discarded.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public static decimal Truncate(
decimal value
)
Parameters
- value Decimal
- A number to truncate.
Return Value
DecimalThe integral part of value; that is, the number that remains after any fractional digits have been discarded.