Arithmetic/Rational: Difference between revisions

Line 4,209:
 
=={{header|Smalltalk}}==
Smalltalk uses ''naturally'' and transparently infinite precision fractions (through the class Fraction):
<pre>st> 54/7
54/7
Line 4,223:
0.8333333333333334
</pre>
{{works with|GNU Smalltalk}} (and all others)
<lang smalltalk>| sum |
2 to: (2 raisedTo: 19) do: [ :candidate |
Anonymous user