[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
CDouble
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
CDouble
(C) double
A standard data type (and thus a keyword) that can hold a single broken number.double myDouble = 12.34;
Advanced
The double is on some/most environments a 64 bit number. The 0th bit contains the sign of the number. In some environments, this might cause the value 0.0 be unequal to -0.0. The == might yield a true, but in memory this will not be the case.int main() { double zero = 0.0; double minusZero = -0.0; assert(zero==minusZero) return 0; }
- include <assert.h>
Code links
'double' links
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
