IMathTNumericTruncate Method
Calculates the integral part of a specified number.
Namespace: Jodosoft.NumericsAssembly: Jodosoft.Numerics (in Jodosoft.Numerics.dll) Version: 2.0
TNumeric Truncate(
TNumeric x
)
Function Truncate (
x As TNumeric
) As TNumeric
TNumeric Truncate(
TNumeric x
)
abstract Truncate :
x : 'TNumeric -> 'TNumeric
- x TNumeric
- A number to truncate.
TNumericThe integral part of
x; that is, the number that remains after any fractional digits have been discarded.
This method may return
NaN or Infinity.
If
NaN or Infinity cannot be represented by
TNumeric,
then this method may throw an
ArithmeticException.