Convert decimal number to rational: Difference between revisions
Content added Content deleted
(Use the function fraction) |
(Remove new line) |
||
Line 2,832: | Line 2,832: | ||
writeln(fraction(bigRational("31.415926536"))); |
writeln(fraction(bigRational("31.415926536"))); |
||
writeln(fraction(bigRational("0.000000000"))); |
writeln(fraction(bigRational("0.000000000"))); |
||
end func; |
end func;</syntaxhighlight> |
||
</syntaxhighlight> |
|||
{{out}} |
{{out}} |
||
<pre>67/74 |
<pre>67/74 |