Answers for "when to use double or float java"

4

is double and float the same function in java

Float and double
Double is more precise than float and can store 64 bits, double of the number of bits float can store. ... Float and double function in the same way in all programming languages. For example, in Java, both will throw NumberFormatException with operations where actual numbers are not involved
Posted by: Guest on March-11-2021
0

java double to float

double d = getInfoValueNumeric();
float f = (float)d;
Posted by: Guest on September-06-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language