DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
convert mixed number string to float
>>> for x in ['1', '1/2', '1 2/3']: print(repr(parse(x))) ... 1.0 0.5 1.6666666666666665
Source by www.py4u.net #
PREVIOUS
NEXT
Tagged:
#convert
#mixed
#number
#string
#float
ADD COMMENT
Topic
COMMENT
Name
3+1 =
Submit