Class Values.Rational

    • Field Detail

      • numerator

        public final long numerator
        The numerator and the denominator of the rational.
      • denominator

        public final long denominator
        The numerator and the denominator of the rational.
    • Constructor Detail

      • Rational

        public Rational​(long num,
                        long den)
        Builds a rational with the specified numerator and denominator.