+ 2

Please

What’s the meaning of double

14th Dec 2017, 5:54 PM
Kerollous Iskander
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 â˜ș
14th Dec 2017, 7:25 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 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
14th Dec 2017, 10:03 PM
ASIF BILAKHIYA
ASIF BILAKHIYA - avatar
+ 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.
14th Dec 2017, 5:58 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 2
double in programme is type of data
14th Dec 2017, 6:00 PM
Dmitry Solovyov
Dmitry Solovyov - avatar