Arithmetic/Rational: Difference between revisions
→{{header|Frink}}
(Frink) |
|||
Line 1,114:
=={{header|Frink}}==
Rational numbers are built into Frink and the numerator and denominator can be arbitrarily-sized. They are automatically simplified
<lang frink>
1/2 + 2/3
Line 1,124:
1/sextillion
// 1/1000000000000000000000 (exactly 1e-21)
8^(1/3)
// 2 (note the exact integer result.)
</lang>
|