RosettaCodeData/Task/Arithmetic-Rational/Frink/arithmetic-rational.frink

12 lines
197 B
Plaintext

1/2 + 2/3
// 7/6 (approx. 1.1666666666666667)
1/2 + 1/2
// 1
5/sextillion + 3/quadrillion
// 600001/200000000000000000000 (exactly 3.000005e-15)
8^(1/3)
// 2 (note the exact integer result.)