Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 8 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!
Latest Questions
Arriyanalol: i need help
1 day ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
1 day ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
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!