what is my best approach to deal with negative floating values in Python3? I know I can remove the negative all together with strip but I'd like to return the negative result if possible
Example the following code returns a math domain error due to the negative number:
eps = -2.1
bps = 5
def calc_grahamNum(self):
''' Graham Number Calculator '''
grahamNum = round(float(math.sqrt(22.5 * eps * bps)),2)
return grahamNum