Talk:Convert decimal number to rational: Difference between revisions

(→‎J and best fit: new section)
Line 34:
::::Whoops! I posted my Perl 6 solution (that handles rep-digits) before checking here. If the task comes out of Draft status with this decision (no rep-digits) intact, then I will reduce the Perl 6 solution to fit the simpler problem. I think that the Python solution will need similar attention. --[[User:Util|Util]] 16:39, 12 June 2011 (UTC)
::::: It probably won't need trimming. We can probably just add a note that the repetitive sequences are sanitized by this version of the program. --[[User:Markhobley|Markhobley]] 17:25, 12 June 2011 (UTC)
 
== J and best fit ==
 
This is a curiosity rather than critism, because I know nothing about J to begin with. My question: how is a floating point stored in J, and how does it determine what a "best fit" is? In the first example 0.518518 turned into a "866492568306r1671094481399" ("r" means "/" I assume?). Why? What about 518518/1000000? --[[User:Ledrug|Ledrug]] 17:57, 14 June 2011 (UTC)
Anonymous user