My code:
a = '2.3'
I wanted to display a
as a floating point value.
Since a
is a string, I tried:
float(a)
The result I got was :
2.2999999999999998
I want a solution for this problem. Please, kindly help me.
I was following this tutorial.