Skip to content
Discussion options

You must be logged in to vote

@kat-rng The try/except is appropriate. You have to consider that issue.
So you could also check if the characters of the string are in '+-.eE0123456789'. This excludes something like '1_000e3' but that should be no problem.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@rkompass
Comment options

Answer selected by kat-rng
@kat-rng
Comment options

@jimmo
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants