[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
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.

  1. include <assert.h>
int main() { double zero = 0.0; double minusZero = -0.0; assert(zero==minusZero) return 0; }


Code links

'double' links



last edited (November 6, 2006) by bilderbikkel, Number of views: 827, Current Rev: 1

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Tore Nestenius at .NET Consultant - Synchron Data.