BigInteger.floatValue

Converts this BigInteger to a {@code float}. This conversion is similar to the <i>narrowing primitive conversion</i> from {@code double} to {@code float} as defined in <cite>The Java&trade; Language Specification</cite>: if this BigInteger has too great a magnitude to represent as a {@code float}, it will be converted to {@link Float#NEGATIVE_INFINITY} or {@link Float#POSITIVE_INFINITY} as appropriate. Note that even when the return value is finite, this conversion can lose information about the precision of the BigInteger value.

@return this BigInteger converted to a {@code float}. @jls 5.1.3 Narrowing Primitive Conversion

class BigInteger
float
floatValue
()

Meta