|
More conversion routines for decQuad & decDouble?
|
Posts:
1
Registered:
Aug 31, 2007 07:59:53 PM
|
|
|
|
More conversion routines for decQuad & decDouble?
Posted:
Aug 31, 2007 08:02:15 PM
|
|
|
|
Hi,
Any plans to have decQuad and decDouble support conversion to and from binary float/double and to and from 64-bit integer?
Thanks,
Young
|
|
Posts:
7
Registered:
Jul 23, 2005 02:55:17 AM
|
|
|
|
Re: More conversion routines for decQuad & decDouble?
Posted:
Sep 01, 2007 03:13:26 AM
in response to: 's post
|
|
|
|
Not in the short term -- I would recommend going via Strings, as this will be very close in performance to a dedicated routine for these conversions.
(double and float are non-trivial conversions, so the effort in reproducing what's already in strtod, etc., makes little sense; int64 conversions are not there as it would make the API require int64s, or make some functions 'optional', which is a step thich takes some thought.)
Mike Cowlishaw
|
|
|
|
|