We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
FixedRational
1 parent e74a296 commit 7f93c4cCopy full SHA for 7f93c4c
src/fixed_rational.jl
@@ -4,6 +4,11 @@
4
A rational number with a fixed denominator. Significantly
5
faster than `Rational{T}`, as it never needs to compute
6
the `gcd` apart from when printing.
7
+Access the denominator with `denom(F)` (which converts to `T`).
8
+
9
+# Fields
10
11
+- `num`: numerator of type `T`. The denominator is fixed to the type parameter `den`.
12
"""
13
struct FixedRational{T<:Integer,den} <: Real
14
num::T
0 commit comments