Decimal Math.Truncate Method
Calculates the integral part of a specified decimal number.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
The integral part of value; that is, the number that remains after any fractional digits have been discarded.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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.