public static enum Remainder.Type extends java.lang.Enum<Remainder.Type>
Enum Constant and Description |
---|
EUCLIDEAN
Remainder is non negative. y>0, q = floor(x/y), y<0, ceil(x/y), r = x - q y.
|
EUCLIDEAN_QUOTIENT |
FLOOR
Remainder has same sign as dividend. q = floor(x/y), r = x - q y.
|
FLOOR_QUOTIENT |
TRUNCATED
Remainder has same sign as divisor. q = (int) (x/y), r = x - q y .
|
TRUNCATED_QUOTIENT |
Modifier and Type | Method and Description |
---|---|
static Remainder.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Remainder.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Remainder.Type TRUNCATED
public static final Remainder.Type FLOOR
public static final Remainder.Type EUCLIDEAN
public static final Remainder.Type TRUNCATED_QUOTIENT
public static final Remainder.Type FLOOR_QUOTIENT
public static final Remainder.Type EUCLIDEAN_QUOTIENT
public static Remainder.Type[] values()
for (Remainder.Type c : Remainder.Type.values()) System.out.println(c);
public static Remainder.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2018 Singular Systems http://www.singularsys.com/jep