Talk:Continued fraction: Difference between revisions

added a "by the way" comment -- ~~~~
m (added a suggestion for another RC task. -- ~~~~)
(added a "by the way" comment -- ~~~~)
Line 18:
 
This would be a good tie-in to another (as yet, unmentioned) Rosetta Code task: generate a continued fraction. -- [[User:Gerard Schildberger|Gerard Schildberger]] 20:29, 24 March 2012 (UTC)
 
== expressing as a true fraction ==
 
By the way, it doesn't take that much to add some code to the subroutine to return the result at a true fraction, i.e.:
<br>cff(0 3 1 1 1 2)
<br>would return
<br>8/29
<br> (that is, the four characters "8/29".
<br>cff(9 2 2)
<br> would return 47/5
<br><br>This necessiitated (for the REXX subroutine) in writing a subroutine to handle arithmetic [+ - * ^ ÷ // %] functions
<br>on/for true fractions (including whole numbers and improper fractions, including negative fractions),
<br>which would also be a good task for Rosetta Code. -- [[User:Gerard Schildberger|Gerard Schildberger]] 21:03, 24 March 2012 (UTC)