Rational numbers
In julia rational numbers can be constructed with the // operator. Lets define two rational numbers, x and y:
x = 1 // 31//3y = 2 // 52//5When adding x and y together we obtain a new rational number:
z = x + y11//15In julia rational numbers can be constructed with the // operator. Lets define two rational numbers, x and y:
x = 1 // 31//3y = 2 // 52//5When adding x and y together we obtain a new rational number:
z = x + y11//15Settings
This document was generated with Documenter.jl version 1.7.0 on Wednesday 11 December 2024. Using Julia version 1.11.2.