Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
gbog
on Feb 3, 2012
|
parent
|
context
|
favorite
| on:
Modern Language Wishlist
How far is Python from this list? Macros are missing but the remaining list seem close to me.
tomp
on Feb 3, 2012
[–]
Math sucks a lot in Python 2.7:
3 / 2 == 1
Python 3 fixes that, thou, but still it uses floating point numbers instead of rational numbers.
lloeki
on Feb 3, 2012
|
parent
|
next
[–]
> it uses floating point numbers instead of rational numbers.
import decimal
import fractions
emillon
on Feb 3, 2012
|
parent
|
prev
[–]
There "from __future__ import division" to fix that.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: