ILNumerics Ultimate VS

complexRound Method (complex, Int32)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
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

public static complex Round(
	complex a,
	int digits
)

Parameters

a
Type: ILNumericscomplex
Input value.
digits
Type: SystemInt32
Number of fractional digits to round to.

Return Value

Type: complex
The value of a, rounded to the specified number of fractional digits.
Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionif 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

Reference