Jump to content

Convert decimal number to rational: Difference between revisions

→‎{{header|Factor}}: edit whitespace, show all imports, and simplify a bit
(→‎{{header|Factor}}: edit whitespace, show all imports, and simplify a bit)
Line 687:
 
=={{header|Factor}}==
<lang factor>USING: kernel math.floating-point prettyprint ;
 
USE: math.floating-point
{ 0.9054054 0.518518 0.75 } [ double>ratio ] map [ . ] eachtri@</lang>
</lang>
{{out}}
<pre>
1,808

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.