> I suppose we could implement the conversion as "float8in(float4out(x))"
> instead of "(double) x" but it'd be several orders of magnitude slower,
> as well as being *less* useful to those who know what they're doing with
> float math (since the result would actually be a less-precise conversion
> except in cases where the intended value has a short decimal
We only need to maintain the lower-order bit(s). Seems this could be done
a lot easier than by an ascii in-between.
Is there a reason we can't perform the conversion and then copy the
low-order bits manually, with some bit-shifting and masking?
In response to
pgsql-hackers by date
|Next:||From: Thomas Lockhart||Date: 2000-08-06 23:59:30|
|Subject: LIKE pattern matching|
|Previous:||From: The Hermit Hacker||Date: 2000-08-06 19:08:52|
|Subject: Re: scp daemon working?|
pgsql-general by date
|Next:||From: vectro||Date: 2000-08-07 00:04:28|
|Subject: Re: [HACKERS] Re: Trouble with float4 afterupgrading from
6.5.3 to 7.0.2 |
|Previous:||From: Stephan Szabo||Date: 2000-08-06 21:26:17|
|Subject: Re: foreign keys|