Arithmetic/Rational: Difference between revisions

m
m (Reformatting.)
m (→‎{{header|Wren}}: Minor tidy)
 
(One intermediate revision by one other user not shown)
Line 19:
 
 
;Related tasktasks:
*   [[Perfect Numbers]]
*   [[Check Machin-like formulas]]
<br><br>
 
Line 5,127 ⟶ 5,128:
{{libheader|Wren-rat}}
The latter module already contains support for rational number arithmetic.
<syntaxhighlight lang="ecmascriptwren">import "./math" for Int
import "./rat" for Rat
 
System.print("The following numbers (less than 2^19) are perfect:")
9,476

edits