Can someone explain the double and bool | Sololearn: Learn to code for FREE!

+1

Can someone explain the double and bool

11/17/2016 9:39:17 PM

Umar Farouq (Humarh_dharnarh)

2 Answers

New Answer

+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.

0