add fraction to double and double to fraction conversion