Home > Back-end >  Refer new double and float
Refer new double and float

Time:10-13

Start the zero basis of novice, to solve the float and double difference in c language, the more obvious, the better, thank you!

CodePudding user response:

Sizeof
One is single precision, is a double
Floating point arithmetic consume time, general numerical calculation, the decimal point too many digits is meaningless,
The design principle of C is efficiency, so where do not need to double with single precision,
But in order to support the mathematical operation, as there are liberian, don't know to achieve the same,

CodePudding user response:

Simply float can represent so can double said 0.00000000000000 0.0000000 (metaphorically, please read the specific scope)
  • Related