Function swri_math_util::ToNearest

Function Documentation

double swri_math_util::ToNearest(double value, double multiple)

Round the value to the nearest provided multiple.

Parameters:
  • value[in] The number to round.

  • multiple[in] The multiple.

Returns:

The rounded value.