0
When writing a constant, what is the essence of the double i.e const double pi =3.14
Constants
5 Antworten
+ 2
`double` is the stored value data type, while `const` is a specifier which tells that the value of <pi> should/can not be modified. It is necessary to define a type for constants, as it is with variables.
+ 2
Thanks guys
+ 1
Double is for the dot 14 try print the value when you put double and without double you will see
+ 1
So is it double because there are two numbers after the decimal point?
+ 1
Double allow you to use decimal to a certain precision