closestEven function

double closestEven(
  1. double given
)

Implementation

double closestEven(double given) {
  return _closestWithParity(given, (rounded) => rounded.isEven);
}