Function Utils::round_nplaces

Function Documentation

double Utils::round_nplaces(const double &value, const int &numDecimals = 5)

Round the input value to a decimal up to numDecimals.

Parameters
  • value – The input number

  • numDecimals – Decimal precision tolerance

Returns

The rounded value