quara.utils.number_util module¶
- check_nonnegative_number(target, parameter_name)[source]¶
check if
targetis nonnegative number.- Parameters
target (int) – the number to check.
parameter_name (str) – the parameter name of the number. this is used for error message.
- Raises
ValueError –
targetis not nonnegative number.- Return type
None