+ 2
Please
Whatâs the meaning of double
4 Answers
+ 25
u store integers in int type
example ::: int x=24;
but u can't do int x=24.5;
u can do int x=(int)24.6; // x will store value 24
or double x=24.5;
//in simple words , its a datatype to store decimal values
//for more information , u can see gawen's answer âș
+ 16
in mathematics/programming perspective number have two type:
NUM_TYPE_1]number without decimal precision point(with + or - sign)
NUM_TYPE_2]number with decimal precision point(with + or - sign)
now ,
NUM_TYPE_1 is supported by long & double data type in java or any language.
Capacity: 8 Byte(java)
Ex:
long l1=10;//ââvalid in java****đđ.
long l1=10.20//ââinvalid in java ****đđ.
NUM_TYPE_2 is supported by only double data and not supported in long datatype type in java or any language.
capacity: 8Byte(java)
Ex:
double d1=10;ââvalid in java****đđ
double d_a=20.40;//ââalso valid ****đđ
i hope you understand and this ans is explain based on what i know about datatype and all and if you feel wrong this one please give comment here i always appreciated that
thank you for your questions
đđđđđ
Asif Bilakhiya
https://www.sololearn.com/Discuss/915574/?ref=app
+ 10
a double is a floating point number with higher precision since it uses double the amount of bytes to represent itself. Usually 4 bytes for a float and 8 bytes for a double, but this is totally platform-dependent.
+ 2
double in programme is type of data