Can someone explain the double and bool | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

Can someone explain the double and bool

17th Nov 2016, 9:39 PM
Umar Farouq (Humarh_dharnarh)
Umar Farouq (Humarh_dharnarh) - avatar
2 ответов
+ 2
'double' is short for 'double-precision floating-point'. As the name implies, 'double' will declare floating-point variable, like 'float', only with twice as many bytes and therefore twice the precision. This increased precision allows for more significant digits in the numbers your store. 'bool' is short for 'boolean'. A boolean value is either true or false. That's it.
17th Nov 2016, 9:51 PM
Arthur Busser
Arthur Busser - avatar
0
Thanks
17th Nov 2016, 11:02 PM
Umar Farouq (Humarh_dharnarh)
Umar Farouq (Humarh_dharnarh) - avatar