public class Ratio extends Object
| Constructor and Description |
|---|
Ratio(int numerator,
int denominator) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getDenominator() |
int |
getNumerator() |
double |
getValue()
Returns the value of the ratio computed as the
numerator / denominator. |
int |
hashCode() |
String |
toString() |
Copyright © 2019. All rights reserved.