I want to define the precision of a float while taking it as an input
NGAS=float(input("enter a number with 3 decimal places"))
instead of mentioning the 3 decimal places I want to do the equivalent of
print('%.3f%' % ESTART)
while taking the input. Since, it affects my calculations.
printrepresentation of afloatwon't impact your calculations.floatisfloat, you don't get "3 decimal place floats". If you need to do decimal maths, you may need to usedecimalmodule. This may be an XY problem.