|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Number
org.jscience.mathematics.algebraic.numbers.ComparableNumber<Float>
org.jscience.mathematics.algebraic.numbers.Float
public final class Float
The Float class encapsulates float numbers.
| Field Summary | |
|---|---|
static float |
MAX_VALUE
DOCUMENT ME! |
static float |
MIN_VALUE
DOCUMENT ME! |
static float |
NaN
DOCUMENT ME! |
static float |
NEGATIVE_INFINITY
DOCUMENT ME! |
static Float |
ONE
DOCUMENT ME! |
static float |
POSITIVE_INFINITY
DOCUMENT ME! |
static java.lang.Class |
TYPE
DOCUMENT ME! |
static Float |
ZERO
DOCUMENT ME! |
| Constructor Summary | |
|---|---|
Float(float num)
Constructs a float number. |
|
Float(Float num)
Constructs a float number. |
|
Float(int num)
Constructs a float number. |
|
Float(Integer num)
Constructs a float number. |
|
Float(long num)
Constructs a float number. |
|
Float(Long num)
Constructs a float number. |
|
Float(Rational num)
Constructs a float number. |
|
Float(java.lang.String s)
Constructs the float number represented by a string. |
|
| Method Summary | |
|---|---|
Float |
abs()
Returns the abs of this number. |
static Float |
acos(Float x)
Returns the arc cosine of a number. |
static Float |
acosh(Float x)
Returns the arc hyperbolic cosine of a number. |
AbelianGroup.Member |
add(AbelianGroup.Member n)
Returns the addition of this number and another. |
Float |
add(Float n)
Returns the addition of this float number and another. |
static Float |
asin(Float x)
Returns the arc sine of a number. |
static Float |
asinh(Float x)
Returns the arc hyperbolic sine of a number. |
static Float |
atan(Float x)
Returns the arc tangent of a number. |
static Float |
atanh(Float x)
Returns the arc hyperbolic tangent of a number. |
java.lang.Object |
clone()
DOCUMENT ME! |
int |
compareTo(ComparableNumber obj)
Compares two comparable numbers. |
int |
compareTo(Float value)
Compares two float numbers. |
static Float |
cos(Float x)
Returns the trigonometric cosine of an angle. |
static Float |
cosh(Float x)
Returns the hyperbolic cosine of a number. |
Field.Member |
divide(Field.Member n)
Returns the division of this number and another. |
Float |
divide(Float n)
Returns the division of this float number and another. |
double |
doubleValue()
DOCUMENT ME! |
boolean |
equals(java.lang.Object obj)
Compares two float numbers for equality. |
static Float |
exp(Float x)
Returns the exponential number e(2.718...) raised to the power of a number. |
float |
floatValue()
DOCUMENT ME! |
Float |
getDistance(ComparableNumber n)
DOCUMENT ME! |
Double |
getEpsilon()
‚±‚Ì•¡‘f? |
Float |
getNaN()
DOCUMENT ME! |
Float |
getNegativeInfinity()
DOCUMENT ME! |
Float |
getPositiveInfinity()
DOCUMENT ME! |
int |
hashCode()
Returns a hash code for this Float object. |
int |
intValue()
DOCUMENT ME! |
Field.Member |
inverse()
Returns the inverse of this number. |
boolean |
isInfinite()
Returns true if this number is infinite. |
boolean |
isNaN()
Returns true if this number is NaN. |
boolean |
isNegativeInfinity()
DOCUMENT ME! |
boolean |
isPositiveInfinity()
DOCUMENT ME! |
static Float |
log(Float x)
Returns the natural logarithm (base e) of a number. |
long |
longValue()
DOCUMENT ME! |
Float |
max(Float val)
Returns the max of this number and another, according to compareTo rules. |
Float |
min(Float val)
Returns the min of this number and another, according to compareTo rules. |
Float |
multiply(Float n)
Returns the multiplication of this float number and another. |
Ring.Member |
multiply(Ring.Member n)
Returns the multiplication of this number and another. |
AbelianGroup.Member |
negate()
Returns the negative of this number. |
int |
signum()
Returns the sign of this number. |
static Float |
sin(Float x)
Returns the trigonometric sine of an angle. |
static Float |
sinh(Float x)
Returns the hyperbolic sine of a number. |
AbelianGroup.Member |
subtract(AbelianGroup.Member n)
Returns the subtraction of this number and another. |
Float |
subtract(Float n)
Returns the subtraction of this float number and another. |
static Float |
tan(Float x)
Returns the trigonometric tangent of an angle. |
static Float |
tanh(Float x)
Returns the hyperbolic tangent of a number. |
java.lang.String |
toString()
Returns a string representing the value of this float number. |
float |
value()
Returns the float value. |
| Methods inherited from class java.lang.Number |
|---|
byteValue, shortValue |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Float ZERO
public static final Float ONE
public static final float MAX_VALUE
public static final float MIN_VALUE
public static final float NaN
public static final float NEGATIVE_INFINITY
public static final float POSITIVE_INFINITY
public static final java.lang.Class TYPE
| Constructor Detail |
|---|
public Float(float num)
public Float(long num)
public Float(int num)
public Float(Float num)
public Float(Rational num)
public Float(Long num)
public Float(Integer num)
public Float(java.lang.String s)
throws java.lang.NumberFormatException
s - a string representing a float number.
java.lang.NumberFormatException - if the string does not contain a parsable number.| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - a float number.
public int compareTo(ComparableNumber obj)
throws java.lang.IllegalArgumentException
obj - a number.
this<obj, zero if
this==obj, and a positive value if
this>obj.
java.lang.IllegalArgumentException - DOCUMENT ME!public int compareTo(Float value)
compareTo in interface java.lang.Comparable<Float>value - a float number.
this<obj, zero if
this==obj, and a positive value if
this>obj.public java.lang.String toString()
toString in class java.lang.Objectpublic float value()
public int intValue()
intValue in class java.lang.Numberpublic long longValue()
longValue in class java.lang.Numberpublic float floatValue()
floatValue in class java.lang.Numberpublic double doubleValue()
doubleValue in class java.lang.Numberpublic Float abs()
public int signum()
public Float min(Float val)
min in class ComparableNumber<Float>val - DOCUMENT ME!
public Float max(Float val)
max in class ComparableNumber<Float>val - DOCUMENT ME!
public boolean isNaN()
isNaN in class ComparableNumber<Float>public boolean isInfinite()
isInfinite in class ComparableNumber<Float>public boolean isNegativeInfinity()
isNegativeInfinity in class ComparableNumber<Float>public boolean isPositiveInfinity()
isPositiveInfinity in class ComparableNumber<Float>public Float getNaN()
getNaN in class ComparableNumber<Float>public Float getNegativeInfinity()
getNegativeInfinity in class ComparableNumber<Float>public Float getPositiveInfinity()
getPositiveInfinity in class ComparableNumber<Float>public int hashCode()
hashCode in class java.lang.Objectpublic Float getDistance(ComparableNumber n)
getDistance in class ComparableNumber<Float>n - DOCUMENT ME!
public AbelianGroup.Member negate()
negate in interface AbelianGroup.Memberpublic Field.Member inverse()
inverse in interface Field.Memberpublic AbelianGroup.Member add(AbelianGroup.Member n)
add in interface AbelianGroup.Membern - DOCUMENT ME!
java.lang.IllegalArgumentException - DOCUMENT ME!public Float add(Float n)
n - DOCUMENT ME!
public AbelianGroup.Member subtract(AbelianGroup.Member n)
subtract in interface AbelianGroup.Membern - DOCUMENT ME!
java.lang.IllegalArgumentException - DOCUMENT ME!public Float subtract(Float n)
n - DOCUMENT ME!
public Ring.Member multiply(Ring.Member n)
multiply in interface Ring.Membern - DOCUMENT ME!
java.lang.IllegalArgumentException - DOCUMENT ME!public Float multiply(Float n)
n - DOCUMENT ME!
public Field.Member divide(Field.Member n)
divide in interface Field.Membern - DOCUMENT ME!
java.lang.IllegalArgumentException - DOCUMENT ME!public Float divide(Float n)
n - DOCUMENT ME!
public static Float exp(Float x)
x - DOCUMENT ME!
public static Float log(Float x)
x - DOCUMENT ME!
public static Float sin(Float x)
x - an angle that is measured in radians
public static Float cos(Float x)
x - an angle that is measured in radians
public static Float tan(Float x)
x - an angle that is measured in radians
public static Float sinh(Float x)
x - DOCUMENT ME!
public static Float cosh(Float x)
x - DOCUMENT ME!
public static Float tanh(Float x)
x - DOCUMENT ME!
public static Float asin(Float x)
x - DOCUMENT ME!
public static Float acos(Float x)
x - DOCUMENT ME!
public static Float atan(Float x)
x - DOCUMENT ME!
public static Float asinh(Float x)
x - DOCUMENT ME!
public static Float acosh(Float x)
x - DOCUMENT ME!
public static Float atanh(Float x)
x - DOCUMENT ME!
public final Double getEpsilon()
public java.lang.Object clone()
clone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||