my input is 3.23, but when I use float on it, it becomes 3.2,
when my input is 3.00, when I do float on it, it becomes 3.0
when I convert to float from string, I still want it to be 3.00 and not 3.0 is it possible? I want to know the code to make it possible, and when I am doing a problem in which the decimal point till 2 digits matter, 3.23 is better than 3.2, for more precision
I suppose that what you want is to convert a float to a string with the number of decimals that you want. You can achieve that using %.3f (here 3 is the number of decimals that you want to print. For example:
>>> print "Value: %.2f" % 3.0000
Value: 3.00