| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | "Pedro M(dot) Ferreira" <pfrazao(at)ualg(dot)pt> |
| Cc: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: Float output formatting options |
| Date: | 2002-11-04 18:14:48 |
| Message-ID: | 18551.1036433688@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
"Pedro M. Ferreira" <pfrazao(at)ualg(dot)pt> writes:
> These functions produce output with (for pair_encode):
> sprintf(str, "%.*g,%.*g", digits8, x, digits8, y);
> digits8 is defined as ,
> #define P_MAXDIG DBL_DIG
> static int digits8 = P_MAXDIG;
> I think it would be done the same way as for float4_out and float8_out:
Yeah. In fact I'd be inclined to remove the static variable and make
the code match float8out exactly (do "DBL_DIG + extra_float_digits").
> There a bunch of other places where output is produced. They are all
> within #ifdef GEODEBUG / #enfif blocks. Should these be corrected the
> same way ?
Up to you. Personally I'd just leave them alone...
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Pedro M. Ferreira | 2002-11-04 18:28:28 | Re: Float output formatting options |
| Previous Message | Pedro M. Ferreira | 2002-11-04 18:10:12 | Re: Float output formatting options |