if the problem is only to avoid the lowest value being 0, you can also use epsilon:
>>> import sys
>>> epsilon = sys.float_info.epsilon
>>> print(0 + epsilon)
2.220446049250313e-16
if the problem is only to avoid the lowest value being 0, you can also use epsilon:
>>> import sys
>>> epsilon = sys.float_info.epsilon
>>> print(0 + epsilon)
2.220446049250313e-16