- qspec. get_decimals ( x )[source]
-
The number of displayed decimals of a float.
- Parameters:
-
- xfloat
A float value.
- Returns:
-
- nint
The number of displayed decimals of
str(x).
The number of displayed decimals of a float.
A float value.
The number of displayed decimals of str(x).