diff --git a/types/src/number/frac.rs b/types/src/number/frac.rs index 7ef8507..068c4f6 100644 --- a/types/src/number/frac.rs +++ b/types/src/number/frac.rs @@ -9,9 +9,14 @@ use number::arith::GCD; use number::{Int, Number}; use object::{Obj, Object}; -/// A fraction consisting of a numerator and denominator. +/// A fraction of two integers. #[derive(Copy, Clone, Debug, Eq, Ord, PartialEq, PartialOrd)] -pub struct Frac { p: Int, q: Int } +pub struct Frac { + /// The numerator. + p: Int, + /// The denominator. + q: Int +} impl Frac { pub fn new(p: Int, q: Int) -> Result {