Skip to main content

alphaWorks  >  Forums  >  decNumber  >  developerWorks

More conversion routines for decQuad & decDouble?    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
Permlink Replies: 1 - Pages: 1 - Last Post: Sep 1, 2007 3:13 AM Last Post By: mfc Threads: [ Previous | Next ]

Posts: 1
Registered: Aug 31, 2007 07:59:53 PM
More conversion routines for decQuad & decDouble?
Posted: Aug 31, 2007 08:02:15 PM
Click to report abuse...   Click to reply to this thread Reply
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
mfc

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: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
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

Point your RSS reader here for a feed of the latest messages in all forums