import re
str_ = "2.809 -36.91 21.487 -493.808 5034.7001"
floats = []
tokens = re.findall(r"[-+]?\d*\.\d+|\d+", str_)
for token in tokens:
f = float(token)
print(f)
floats.append(f)
print(floats)
'''
run:
2.809
-36.91
21.487
-493.808
5034.7001
[2.809, -36.91, 21.487, -493.808, 5034.7001]
'''