[Cfp-interest 1729] Re: short hex strings

Paul Zimmermann Paul.Zimmermann at inria.fr
Sun Jul 26 23:26:52 PDT 2020


       David,

this is a nice example: we have both exact and inexact output, and it avoids
the tie breaking issue with x=3 and %.0a.

Paul

> Date: Fri, 24 Jul 2020 13:55:30 -0700 (PDT)
> From: David Hough CFP  <pcfp at oakapple.net>
> 
> > ++++++++++
> For example, possible printed output for the code 
> 
> #include <stdio.h>
> â¦
> double x = 123.0;
> printf("%.1a", x); 
> 
> include "0x1.fp+6" and "0xf.6p+3â whose numerical values are 124 and 123 respectively.
> ++++++++++
> 
> This is simpler.    
> 
> This is also an example of the sort of thing for which we had background
> documents for 754.


More information about the Cfp-interest mailing list