Do you of you know what the "approximately equal to" operand is? I need to find numbers in a list that are approximately equal to a fixed number that I have defined. I tried doing =~
and == ~float
but did not work. Below is the sample code of what I trying to do. Thanks in advance!
for c1 in range(len(path_Limon_Lib_Chorotega)):
for c2 in range(len(path_Limon_Lib_Chorotega[c1][0])):
if path_Limon_Lib_Chorotega[c1][0][c2] == ~11.264:
# if path_Limon_Lib_Chorotega[c1][0][c2] > 11.264 and path_Limon_Lib_Chorotega[c1][0][c2] < 60.8:
coords_Limon_Lib_Chorotega[c1].append(
(
path_Limon_Lib_Chorotega[c1]["Lat"][c2],
path_Limon_Lib_Chorotega[c1]["Long"][c2]
)
)