Decimal to fraction

Realized this wasn’t implemented while starting work on radical, so I
implemented it.