- 1
Good day everyone.How do you calculate logarithm in a way that it will accept string, if it is possible, please send solutions
Python questions
5 odpowiedzi
0
First share your code which you have tried
0
Ok Atul
0
I used math log () function.
I used numpy function
But nothing worked, they need real numbers not string/str
0
You have to cast the string to float first:
num = float(num_string)
Then do calculations with num
0
Ok Benjamin Jürgens. I will try it