Name: Anonymous 2009-11-18 22:37
In Python, why the fuck does float(2/3) return 0.0?
~ % ghci
GHCi, version 6.10.4: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer ... linking ... done.
imLoading package base ... linking ... done.
poPrelude> import Data.Number.CReal
Could not find module `Data.Number.CReal':
Use -v to see a list of the files searched for.
Prelude> 2/3
0.***** Exc*** Exception: stack o*** Exception: stack ove*** Exception: stack overflowrflowverflowep*** Exc*** Exception: stack overfloweption: stack overflowtion: stack overflow* Exc*** Exception: stack overfloweption: st*** Exception: stack overflowack o*** Exception: stack overflowverflow