Retired

Convert recurring decimal to fraction (retired)

Description:

Given a decimal 'q' and a string 's' that represents the recurring part of 'q', convert 'q' to a fraction and simplify.

Returning the numerator and denominator as integers

eg. convert(0.11, '1') should return (1, 9)

Thanks to ZED.CWT for invaluable input and a better solution

Mathematics
Fundamentals

Stats:

CreatedMar 9, 2019
Warriors Trained126
Total Skips5
Total Code Submissions178
Total Times Completed20
Python Completions20
Total Stars6
% of votes with a positive feedback rating63% of 12
Total "Very Satisfied" Votes6
Total "Somewhat Satisfied" Votes3
Total "Not Satisfied" Votes3
Total Rank Assessments11
Average Assessed Rank
6 kyu
Highest Assessed Rank
5 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • joelpeyton Avatar
  • FArekkusu Avatar
Ad