Java BigInteger floatValue() MethodThe floatValue() method of Java BigInteger class is used to convert this BigInteger to a float.This conversion is similar to the narrowing primitive conversion from double to float. Narrowing Primitive Conversion:According to The Java Language Specification, it is defined as ifthisBigInteger has too great a magnitude to represent as a float, it will be converted to Float.NEGATIVE_INFINITY or Float.POSITIVE_INFINITY as appropriate. Syntax:Returns:This method returns this BigInteger converted to a float. Note:ExampleTest it NowOutput: Result of floatValue operation on 123 is 123.0 Result of floatValue operation on -123 is -123.0 Next TopicJava BigInteger |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India