Package org.xcsp.common.domains
Class Values.Rational
- java.lang.Object
-
- org.xcsp.common.domains.Values.Rational
-
- All Implemented Interfaces:
Values.SimpleValue
- Enclosing class:
- Values
public static final class Values.Rational extends Object implements Values.SimpleValue
A class to represent rational values.
-
-
Field Summary
Fields Modifier and Type Field Description long
denominator
The numerator and the denominator of the rational.long
numerator
The numerator and the denominator of the rational.
-
Constructor Summary
Constructors Constructor Description Rational(long num, long den)
Builds a rational with the specified numerator and denominator.
-