java Programming Glossary: numerator
Best way to represent a fraction in Java? http://stackoverflow.com/questions/474535/best-way-to-represent-a-fraction-in-java method final class Fraction extends Number private int numerator private int denominator public Fraction int numerator int denominator.. int numerator private int denominator public Fraction int numerator int denominator if denominator 0 throw new IllegalArgumentException.. denominator is zero if denominator 0 numerator 1 denominator 1 this.numerator numerator this.denominator denominator..
|