Fix getDecimalPlaces for rationals.

So it doesn't just return 0!

Auditors: alex