| java.lang.Object | |
| ↳ | android.util.FloatMath |
This class was deprecated
in API level 22.
Use Math instead.
Math routines similar to those found in Math.
Historically these methods were faster than the equivalent double-based
Math methods. On versions of Android with a JIT they
became slower and have since been re-implemented to wrap calls to
Math. Math should be used in
preference.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the float conversion of the most negative (i.e.
| |||||||||||
Returns the closest float approximation of the cosine of the argument.
| |||||||||||
Returns the closest float approximation of the raising "e" to the power
of the argument.
| |||||||||||
Returns the float conversion of the most positive (i.e.
| |||||||||||
Returns
sqrt(x2+
y2).
| |||||||||||
Returns the closest float approximation of the result of raising
x to the power of y.
| |||||||||||
Returns the closest float approximation of the sine of the argument.
| |||||||||||
Returns the closest float approximation of the square root of the
argument.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Returns the float conversion of the most negative (i.e. closest to negative infinity) integer value which is greater than the argument.
| value | to be converted |
|---|
Returns the closest float approximation of the cosine of the argument.
| angle | to compute the cosine of, in radians |
|---|
Returns the closest float approximation of the raising "e" to the power of the argument.
| value | to compute the exponential of |
|---|
Returns the float conversion of the most positive (i.e. closest to positive infinity) integer value which is less than the argument.
| value | to be converted |
|---|
Returns sqrt(x2+
y2).
| x | a float number |
|---|---|
| y | a float number |
Returns the closest float approximation of the result of raising x to the power of y.
| x | the base of the operation. |
|---|---|
| y | the exponent of the operation. |
x to the power of y.
Returns the closest float approximation of the sine of the argument.
| angle | to compute the cosine of, in radians |
|---|
Returns the closest float approximation of the square root of the argument.
| value | to compute sqrt of |
|---|