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