ILNumerics Ultimate VSfcomplexRound Method (fcomplex, 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.3.0.0 (5.3.7131.2749)
Syntax

public static fcomplex Round(
	fcomplex a,
	int digits
)

Parameters

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

Return Value

Type: fcomplex
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