Convert decimal to fraction