MathTruncate Method (Decimal) |
Calculates the integral part of a specified decimal number.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static decimal Truncate(
decimal d
)
Parameters
- d
- Type: SystemDecimal
A number to truncate.
Return Value
Type:
DecimalThe integral part of
d; that is, the number that remains after any fractional digits have been discarded.
See Also