Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 6 Online
OpenStudy (tyler1989):

>>> poly=(0.0,0.0,5.0,9.3,7.0) >>> print poly (0.0, 0.0, 5.0, 9.3000000000000007, 7.0) how to eliminate the digits of 9.30000000007 i want it to print out as same as the original thx for help

OpenStudy (kizolk):

Depends on what you need that for but you could always use strings instead of floats. Other than that I don't see how you could keep your original number without Python doing its annoying float things.

OpenStudy (anonymous):

printf("%.2f", 9.3);

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!