Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Christ.

Name: Anonymous 2009-11-18 22:37

In Python, why the fuck does float(2/3) return 0.0?

Name: Anonymous 2009-11-19 11:29

>>5
I just got around it by adding 0.0000 to each

It's a good thing you added '0.0000', and to each as well. If you were to add 0.000, or, God forbid, 0.00, not to speak about further unthinkable reductions, who knows what might have happened?! Worst of all, if you add things asymmetrically, never do this.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List