Serializable
, Comparable<Float>
, Constable
, ConstantDesc
Fields
static final int
The number of bytes used to represent a float
value, 4.
static final int
Maximum exponent a finite float
variable may have, 127.
static final float
A constant holding the largest positive finite value of type float
, (2-2-23)ยท2127.
static final int
Minimum exponent a normalized float
variable may have, -126.
static final float
A constant holding the smallest positive normal value of type float
, 2-126.
static final float
A constant holding the smallest positive nonzero value of type float
, 2-149.
static final float
A constant holding a Not-a-Number (NaN) value of type float
.
static final float
A constant holding the negative infinity of type float
.
static final float
A constant holding the positive infinity of type float
.
static final int
The number of bits in the significand of a float
value, 24.
static final int
The number of bits used to represent a float
value, 32.
The Class
instance representing the primitive type float
.
Constructors
Deprecated, for removal: This API element is subject to removal in a future version. Deprecated, for removal: This API element is subject to removal in a future version. Deprecated, for removal: This API element is subject to removal in a future version.byte
Returns the value of this Float
as a byte
after a narrowing primitive conversion.
static int
Compares the two specified float
values.
int
Compares two Float
objects numerically.
Returns an
Optional
containing the nominal descriptor for this instance, which is the instance itself.
double
Returns the value of this Float
as a double
after a widening primitive conversion.
boolean
Compares this object against the specified object.
static float
Returns the float
value closest to the numerical value of the argument, a floating-point binary16 value encoded in a short
.
static short
Returns the floating-point binary16 value, encoded in a short
, closest in value to the argument.
static int
Returns a representation of the specified floating-point value according to the IEEE 754 floating-point "single format" bit layout.
static int
Returns a representation of the specified floating-point value according to the IEEE 754 floating-point "single format" bit layout, preserving Not-a-Number (NaN) values.
float
Returns the float
value of this Float
object.
int
Returns a hash code for this Float
object.
static int
Returns a hash code for a float
value; compatible with Float.hashCode()
.
static float
Returns the float
value corresponding to a given bit representation.
int
Returns the value of this Float
as an int
after a narrowing primitive conversion.
static boolean
Returns true
if the argument is a finite floating-point value; returns false
otherwise (for NaN and infinity arguments).
boolean
Returns true
if this Float
value is infinitely large in magnitude, false
otherwise.
static boolean
Returns true
if the specified number is infinitely large in magnitude, false
otherwise.
boolean
Returns true
if this Float
value is a Not-a-Number (NaN), false
otherwise.
static boolean
Returns true
if the specified number is a Not-a-Number (NaN) value, false
otherwise.
long
Returns value of this Float
as a long
after a narrowing primitive conversion.
static float
Returns the greater of two
float
values as if by calling
Math.max
.
static float
Returns the smaller of two
float
values as if by calling
Math.min
.
static float
Returns a new float
initialized to the value represented by the specified String
, as performed by the valueOf
method of class Float
.
Resolves this instance as a
ConstantDesc
, the result of which is the instance itself.
short
Returns the value of this Float
as a short
after a narrowing primitive conversion.
static float
Adds two float
values together as per the + operator.
Returns a hexadecimal string representation of the float
argument.
Returns a string representation of this Float
object.
Returns a string representation of the float
argument.
Returns a Float
instance representing the specified float
value.
Returns a Float
object holding the float
value represented by the argument string s
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4