Issue
- How can I convert a
strtofloat?"545.2222" → 545.2222 - How can I convert a
strtoint?"31" → 31
Solution
>>> a = "545.2222"
>>> float(a)
545.22220000000004
>>> int(float(a))
545
Answered By - Harley Holcombe Answer Checked By - Gilberto Lyons (PHPFixing Admin)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.