Timeline for answer to How to check if a string represents a float number by Martin Tournoij
Current License: CC BY-SA 3.0
Post Revisions
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 5, 2016 at 0:41 | comment | added | mhawke |
Using is_integer() to distinguish ints from floats is a nice touch.
|
|
| Mar 5, 2016 at 0:37 | history | edited | Martin Tournoij | CC BY-SA 3.0 |
edited body
|
| Mar 5, 2016 at 0:37 | comment | added | Joran Beasley | add a try/except ... but yeah this is the most right answer imho :) | |
| Mar 5, 2016 at 0:36 | history | answered | Martin Tournoij | CC BY-SA 3.0 |