roundValue

cgp_generic_utils.maths.roundValue(value, decimalCount)

round the value to the count of decimals

Parameters:
  • value (float) – value to round
  • decimalCount (int) – count of decimal to round for
Returns:

the rounded value

Return type:

float