Python How to convert float to String
By:Roy.LiuLast updated:2019-08-11
In Python, we can use str() to convert float to String.
pi = 3.1415 print(type(pi)) # float piInString = str(pi) # float -> str print(type(piInString)) # str
Output
<class 'float'> <class 'str'>
References
From:一号门
COMMENTS