Skip to content

Commit 7f93c4c

Browse files
committed
Improve docs on FixedRational
1 parent e74a296 commit 7f93c4c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/fixed_rational.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
A rational number with a fixed denominator. Significantly
55
faster than `Rational{T}`, as it never needs to compute
66
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`.
712
"""
813
struct FixedRational{T<:Integer,den} <: Real
914
num::T

0 commit comments

Comments
 (0)