From Python
"30.33333"
to float 30.3333
"30"
like int 30
What should I do to change my brother?
float("30.3333")
int("30")
You can use it together.
Python is easy
If you want to make an exception together, write as follows
def stringToInt(num):
try:
int(num)
except:
#Exception Processing
© 2024 OneMinuteCode. All rights reserved.