Explanation for "double" in data types . Detailed manner? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Explanation for "double" in data types . Detailed manner?

Confusion on getting to this "double" in data types.

30th Sep 2021, 10:31 AM
Pavan Sai Vidadala
2 ответов
+ 2
double is a data type that is used to store values with a decimal part. For example, you use an "int" to store the value 5. But you can't store 5.56 in an "int". So we use double to store 5.56, or a similar number with a decimal part. float is also like double, but it is of less precision.
30th Sep 2021, 10:35 AM
Rishi
Rishi - avatar
+ 2
Double is similar to real numbers from a school.
30th Sep 2021, 10:37 AM
JaScript
JaScript - avatar