Represents a simple ratio of X / Y
Type | Name and description |
---|---|
int |
denominator |
int |
numerator |
Constructor and description |
---|
Ratio
(int numerator, int denominator) |
Type | Name and description |
---|---|
Object |
asType(Class theClass) |
Ratio |
plus(Ratio ratio) |
BigDecimal |
toBigDecimal(int scale, int roundingMode) |
String |
toString() |
Groovy Documentation