Hello again prospect,
Regarding your question you can find a very similar question on the forum that contains many interesting answers: A function to determine if a string is numeric, similarly How to determine if something is numeric?.
A most common way to convert a numerical string to int is casting int. For example from documentation:
For example, int(-6.725/0.025) produces -268 rather than the correct - +269; that's because it's really more like -268.99999999999994315658 i +nstead.
Hope this helps, BR.
In reply to Re^3: result is not listening to if
by thanos1983
in thread result is not listening to if
by prospect
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |