| java.lang.Object org.jmlspecs.models.JMLFloat
Constructor Summary | |
public | JMLFloat() Initialize this object to contain zero. | public | JMLFloat(float inFloat) Initialize this object to contain the given float. | public | JMLFloat(int inInt) Initialize this object to contain an approximation to the
given integer. | public | JMLFloat(Float inFloat) Initialize this object to contain the value of the given
Float. | public | JMLFloat(String s) Initialize this object to contain the value given by the
string argument. |
Method Summary | |
public boolean | approximatelyEqualTo(JMLFloat f2, float epsilon) Tell whether relative difference of this JMLFloat and the arg is
within the given epsilon. | public boolean | approximatelyEqualTo(Float f2, float epsilon) Tell whether relative difference of this JMLFloat and the arg is
within the given epsilon. | public boolean | approximatelyEqualTo(float f2, float epsilon) Tell whether relative difference of this JMLFloat and the arg is
within the given epsilon. | public static boolean | approximatelyEqualTo(float f1, float f2, float epsilon) Tell whether relative difference of the two arguments is
within the given epsilon. | public static boolean | approximatelyEqualTo(JMLFloat f1, JMLFloat f2, float epsilon) Tell whether relative difference of this JMLFloat and the arg is
within the given epsilon. | public static boolean | approximatelyEqualTo(JMLFloat f1, Float f2, float epsilon) Tell whether relative difference of this JMLFloat and the arg is
within the given epsilon. | public static boolean | approximatelyEqualTo(JMLFloat f1, float f2, float epsilon) Tell whether relative difference of this JMLFloat and the arg is
within the given epsilon. | public Object | clone() Return a clone of this object. | public int | compareTo(Object op2) Compare this to op2, returning a comparison code. | public JMLFloat | dividedBy(JMLFloat f2) Return the quotient of this divided by the given argument. | public boolean | equals(Object op2) Tell whether this object is equal to the argument. | public float | floatValue() Return the float contained in this object. | public Float | getFloat() Return a Float containing the float contained in this object. | public boolean | greaterThan(JMLFloat f2) Tell whether this is strictly greater than the given argument. | public boolean | greaterThanOrEqualTo(JMLFloat f2) Tell whether this is greater than or equal to the given argument. | public int | hashCode() Return a hash code for this object. | public boolean | isInfinite() Tell if this object contains either positive or negative infinity. | public boolean | isNaN() Tell if this object contains NaN (not a number). | public static boolean | isZero(float f) Tell if the argument is zero (either positive or negative). | public boolean | isZero() Tell if this object contains zero (either positive or negative). | public boolean | lessThan(JMLFloat f2) Tell whether this is strictly less than the given argument. | public boolean | lessThanOrEqualTo(JMLFloat f2) Tell whether this is less than or equal to the given argument. | public JMLFloat | minus(JMLFloat f2) Return the difference between this and the given argument. | public JMLFloat | negated() Return the negation of this. | public JMLFloat | plus(JMLFloat f2) Return the sum of this and the given argument. | public JMLFloat | remainderBy(JMLFloat f2) Return the remainder of this divided by the given argument. | public JMLFloat | times(JMLFloat f2) Return the product of this and the given argument. | public String | toString() Return a string representation of this object. | public boolean | withinEpsilonOf(JMLFloat f2, float epsilon) Tell whether absolute value of difference of this JMLFloat and the arg
is within the given epsilon. | public boolean | withinEpsilonOf(Float f2, float epsilon) Tell whether absolute value of difference of this JMLFloat and the arg
is within the given epsilon. | public boolean | withinEpsilonOf(float f2, float epsilon) Tell whether absolute value of difference of this JMLFloat and the arg
is within the given epsilon. | public static boolean | withinEpsilonOf(float f1, float f2, float epsilon) Tell whether absolute value of difference of the two arguments
is within the given epsilon. | public static boolean | withinEpsilonOf(JMLFloat f1, JMLFloat f2, float epsilon) Tell whether absolute value of difference of this JMLFloat and the arg
is within the given epsilon. | public static boolean | withinEpsilonOf(JMLFloat f1, Float f2, float epsilon) Tell whether absolute value of difference of this JMLFloat and the arg
is within the given epsilon. | public static boolean | withinEpsilonOf(JMLFloat f1, float f2, float epsilon) Tell whether absolute value of difference of this JMLFloat and the arg
is within the given epsilon. |
JMLFloat | public JMLFloat()(Code) | | Initialize this object to contain zero.
|
JMLFloat | public JMLFloat(float inFloat)(Code) | | Initialize this object to contain the given float.
|
JMLFloat | public JMLFloat(int inInt)(Code) | | Initialize this object to contain an approximation to the
given integer.
|
JMLFloat | public JMLFloat(Float inFloat)(Code) | | Initialize this object to contain the value of the given
Float.
|
approximatelyEqualTo | public static boolean approximatelyEqualTo(float f1, float f2, float epsilon)(Code) | | Tell whether relative difference of the two arguments is
within the given epsilon.
|
clone | public Object clone()(Code) | | Return a clone of this object.
|
dividedBy | public JMLFloat dividedBy(JMLFloat f2)(Code) | | Return the quotient of this divided by the given argument.
|
equals | public boolean equals(Object op2)(Code) | | Tell whether this object is equal to the argument.
|
floatValue | public float floatValue()(Code) | | Return the float contained in this object.
|
getFloat | public Float getFloat()(Code) | | Return a Float containing the float contained in this object.
|
greaterThan | public boolean greaterThan(JMLFloat f2)(Code) | | Tell whether this is strictly greater than the given argument.
|
greaterThanOrEqualTo | public boolean greaterThanOrEqualTo(JMLFloat f2)(Code) | | Tell whether this is greater than or equal to the given argument.
|
hashCode | public int hashCode()(Code) | | Return a hash code for this object.
|
isInfinite | public boolean isInfinite()(Code) | | Tell if this object contains either positive or negative infinity.
|
isNaN | public boolean isNaN()(Code) | | Tell if this object contains NaN (not a number).
|
isZero | public static boolean isZero(float f)(Code) | | Tell if the argument is zero (either positive or negative).
|
isZero | public boolean isZero()(Code) | | Tell if this object contains zero (either positive or negative).
|
lessThan | public boolean lessThan(JMLFloat f2)(Code) | | Tell whether this is strictly less than the given argument.
|
lessThanOrEqualTo | public boolean lessThanOrEqualTo(JMLFloat f2)(Code) | | Tell whether this is less than or equal to the given argument.
|
remainderBy | public JMLFloat remainderBy(JMLFloat f2)(Code) | | Return the remainder of this divided by the given argument.
|
toString | public String toString()(Code) | | Return a string representation of this object.
|
withinEpsilonOf | public boolean withinEpsilonOf(JMLFloat f2, float epsilon)(Code) | | Tell whether absolute value of difference of this JMLFloat and the arg
is within the given epsilon.
|
withinEpsilonOf | public boolean withinEpsilonOf(Float f2, float epsilon)(Code) | | Tell whether absolute value of difference of this JMLFloat and the arg
is within the given epsilon.
|
withinEpsilonOf | public boolean withinEpsilonOf(float f2, float epsilon)(Code) | | Tell whether absolute value of difference of this JMLFloat and the arg
is within the given epsilon.
|
withinEpsilonOf | public static boolean withinEpsilonOf(float f1, float f2, float epsilon)(Code) | | Tell whether absolute value of difference of the two arguments
is within the given epsilon.
|
withinEpsilonOf | public static boolean withinEpsilonOf(JMLFloat f1, JMLFloat f2, float epsilon)(Code) | | Tell whether absolute value of difference of this JMLFloat and the arg
is within the given epsilon.
|
withinEpsilonOf | public static boolean withinEpsilonOf(JMLFloat f1, Float f2, float epsilon)(Code) | | Tell whether absolute value of difference of this JMLFloat and the arg
is within the given epsilon.
|
withinEpsilonOf | public static boolean withinEpsilonOf(JMLFloat f1, float f2, float epsilon)(Code) | | Tell whether absolute value of difference of this JMLFloat and the arg
is within the given epsilon.
|
|
|