Jump to content

Convert decimal number to rational: Difference between revisions

m
→‎{{header|NetRexx}}: Fixed typo (fro → for)
m (→‎{{header|NetRexx}}: Fixed typo (fro → for))
Line 1,520:
If den=1 Then Return nom /* an integer */
Else Return nom'/'den /* otherwise a fraction */</lang>
Output is the same as frofor Rexx Version 2.
 
=={{header|PARI/GP}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.