Function Utils::nonzeroDecimals
Defined in File utils.h
Function Documentation
-
int Utils::nonzeroDecimals(const double num, const int decimalBound = 6)
Given a number
num
and a bounddecimalBound
, counts the number of non-zero decimals up todecimalBound
.- Parameters
num – The input number
decimalBound – The maximal bound on decimals to be counted
- Returns
The number of non-zero decimals