DoubleExtensions.UnsetImaginary

Extension Method in DoubleExtensions

Declaration

public static void UnsetImaginary(this ref double value, double newValue = 0)

Description

Sets the value to a new value if the value is an imaginary number (infinite or NaN).

Parameters

valueThe value to check.
newValueThe value to set if the original value is an imaginary number.