ivcurves.utils.mp_num_digits_left_of_decimal#
- ivcurves.utils.mp_num_digits_left_of_decimal(num_mpf)#
Finds the number of digits to the left of an mpmath float’s decimal point. If the mpmath float is strictly between -1 and 1, the number of digits is zero.
- Parameters:
num_mpf (numeric) – The mpmath float. [-]
- Returns:
The number of digits to the left of the decimal point of
num_mpf
, ignoring leading zeros.- Return type: