0
I though it was float
what's double
3 Respostas
+ 3
double can have much larger numbers than float. Don't use it unless you actually need it. Both are numbers with/without a decimal point
+ 3
Double > Float
By default decimal numbers are of type double in Java.
So : float a = 1.5;
Will give an error, unless you cast the double to a float someway.
Like:
float a = 1.5f;
0
float double is datatype