Talk:Quadruple-precision floating-point format: Difference between revisions

Content deleted Content added
Line 10:
 
:Good point. So changed. --[[User:JakeVortex|Jake]] 21:43, 9 January 2006 (UTC)
 
== How to declare and print in C? ==
 
This article does not seem to show how to declare or print quadruple-precision numbers in C, and hence was not useful for me. In fact, I have not been able to find a complete and clear description of this anywhere online! To declare float, and then print it, you do:
 
/* In variable declarations */
 
float n;
 
/* In main program */
 
printf("the number is %f", n);
 
I know also that to declare a double precision you do "double n" but I don't know how to print that either. However, using printf("the number is %f", n) also seems to work, but sometimes may not output all the digits I want.
 
 
== 1/3 rounds up or down? ==