Checks if each double in a sequence is arbitrarily close to 0.0 and if so, converts it to 0.0.
Checks if each double in a sequence is arbitrarily close to 0.0 and if so, converts it to 0.0.
A sequence of double values.
A new sequence of doubles where any element in the original sequence that is within ESPILON of 0.0 is converted to 0.0. All other elements of the sequence are unchanged.
Converts a value to 0.0 if it is arbitrarily close to it.
Converts a value to 0.0 if it is arbitrarily close to it.
A double value.
If the value is within EPSILON of 0.0, then 0.0. Otherwise, the value is returned unchanged.
Rounds to the specified number of decimal places.
Rounds to the specified number of decimal places. If not specified, default is 6 decimal places
A Double value
Number of decimal places to round to.
Value with specified number of decimal places. Default is 6 decimal places.
Numerical utilities for implementation and test cases.