Long.floatValue() has the following syntax.
public float floatValue()
In the following code shows how to use Long.floatValue() method.
public class Main { public static void main(String[] args) { Long longObject = new Long("1234567"); float f = longObject.floatValue(); System.out.println("float"+f); } }
The output: