Answers for "float from string python"

3

extract float from string python

>>> re.findall(r"[-+]?d*.d+|d+", "Current Level: -13.2 db or 14.2 or 3")
['-13.2', '14.2', '3']
Posted by: Guest on February-17-2020
9

float to string python

pi = 3.1415 # float
piInString = str(pi)  # float -> str
Posted by: Guest on April-24-2020

Code answers related to "float from string python"

Python Answers by Framework

Browse Popular Code Answers by Language