Talk:Convert decimal number to rational: Difference between revisions

(→‎Repetitive digit chains and rounding: No repeating decimal expansions necessary?)
Line 26:
 
::It is certainly interesting, but I think it goes well beyond what is in the task description and given in the first, (canonical?), example in BASIC. I read it as needing a routine that can take the ''given'' decimal numbers and generate their rational approximations with no need to introduce repeating digit handling. --[[User:Paddy3118|Paddy3118]] 15:25, 12 June 2011 (UTC)
 
:::Yeah, you are probably right Paddy. The repeating sequence scenario only applies if it occurs across the full width of input. Handling of repetitive digits could be dealt with by a separate handler before this routine is called. A separate task could be to create such a handler. For this task (not the handler task) we could deal just with the conversion, and the output is taken as it is. --[[User:Markhobley|Markhobley]] 16:09, 12 June 2011 (UTC)