Package org.sosy_lab.java_smt.api
Enum FloatingPointRoundingMode
- java.lang.Object
-
- java.lang.Enum<FloatingPointRoundingMode>
-
- org.sosy_lab.java_smt.api.FloatingPointRoundingMode
-
- All Implemented Interfaces:
Serializable
,Comparable<FloatingPointRoundingMode>
public enum FloatingPointRoundingMode extends Enum<FloatingPointRoundingMode>
Possible floating point rounding modes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NEAREST_TIES_AWAY
NEAREST_TIES_TO_EVEN
TOWARD_NEGATIVE
TOWARD_POSITIVE
TOWARD_ZERO
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FloatingPointRoundingMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static FloatingPointRoundingMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEAREST_TIES_TO_EVEN
public static final FloatingPointRoundingMode NEAREST_TIES_TO_EVEN
-
NEAREST_TIES_AWAY
public static final FloatingPointRoundingMode NEAREST_TIES_AWAY
-
TOWARD_POSITIVE
public static final FloatingPointRoundingMode TOWARD_POSITIVE
-
TOWARD_NEGATIVE
public static final FloatingPointRoundingMode TOWARD_NEGATIVE
-
TOWARD_ZERO
public static final FloatingPointRoundingMode TOWARD_ZERO
-
-
Method Detail
-
values
public static FloatingPointRoundingMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FloatingPointRoundingMode c : FloatingPointRoundingMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FloatingPointRoundingMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-