ILNumerics - Technical Application Development
Assembly: ILNumerics.Core (in ILNumerics.Core.dll) Version: 5.5.0.0 (5.5.7503.3146)
The value of a, rounded to the specified number of fractional digits.
Rounds to a specified number of fractional digits.
[ILNumerics Core Module]
Namespace: ILNumerics
Assembly: ILNumerics.Core (in ILNumerics.Core.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax
Parameters
- a
- Type: ILNumericscomplex
Input value. - digits
- Type: SystemInt32
Number of fractional digits to round to.
Return Value
Type: complexThe value of a, rounded to the specified number of fractional digits.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | if digits is negative. |
Remarks
Rounding is performed for real and imag separately.
Numbers halfway between two others (0.5, 1.5,...) are rounded towards the next even number. See: ToEven.
[ILNumerics Core Module]
See Also