Continued fraction/Arithmetic/Construct from rational number: Difference between revisions
Continued fraction/Arithmetic/Construct from rational number (view source)
Revision as of 16:26, 12 June 2022
, 2 years ago→{{header|ALGOL 68}}: Typo
(→{{header|ALGOL 68}}: Fix negative numbers) |
m (→{{header|ALGOL 68}}: Typo) |
||
Line 122:
);
# returns the
# numerator and denominator to the next values for #
# the continued fraction #
PROC r2cf = ( REF INT numerator, REF INT denominator )INT:
IF denominator = 0
|