Computer Science, asked by mayvendimplelim, 3 months ago

Why do we Use as double in declaring the width and height? Why not as interger

Answers

Answered by Moncheri06
7

\huge \mathbb\fcolorbox{black}{lavenderblush}{Answer♡}

Double is more precise than float and can store 64 bits, double of the number of bits float can store. Double is more precise and for storing large numbers, we prefer double over float. For example, to store the annual salary of the CEO of a company, double will be a more accurate choice.

Similar questions