Discussion Forums

Re: Representing a double as a Fast scaled decimal
Anders Furuhed / Pantor Engineering
8 Oct 2008 2:13PM ET

> Hi,
>
> What is the most efficient way to encode a given double value into a
> scaled number?
>
> For example, assuming that I have 2.5555 represented as a double
> on Linux, and want to create a FAST wired representation of this
> this field?
>
> Thanks, Dimitry

Dimitry,

at Pantor (Pantor Presto and ORDO), we avoid shifting between base 2 and base 10 representations in our processing chain as a conversion may become part of the bottleneck at extreme rates. Also, we hand scaled numbers to users of our Presto API to avoid a conversion unless / until it turns out to be necessary.
If doubles are what you have to work with, there is not much to do but to create an optimized converter with all the tweaks in the book.

Kind regards, Anders


Representing a double as a Fast scaled decimal
Dimitry London / Morgan Stanley   8 Oct 2008 12:50PM ET
Re: Representing a double as a Fast scaled decimal
Anders Furuhed / Pantor Engineering   8 Oct 2008 2:13PM ET
Re: Representing a double as a Fast scaled decimal
Dimitry London / Morgan Stanley   8 Oct 2008 3:06PM ET
Re: Representing a double as a Fast scaled decimal
Rolf Andersson / Pantor Engineering   8 Oct 2008 3:22PM ET
Re: Representing a double as a Fast scaled decimal
Dimitry London / Morgan Stanley   8 Oct 2008 3:47PM ET
Re: Representing a double as a Fast scaled decimal
Rolf Andersson / Pantor Engineering   8 Oct 2008 3:56PM ET
Re: Representing a double as a Fast scaled decimal
Dimitry London / Morgan Stanley   8 Oct 2008 4:04PM ET
Re: Representing a double as a Fast scaled decimal
Daniel May / SpryWare, LLC   8 Oct 2008 5:27PM ET
Re: Representing a double as a Fast scaled decimal
Dimitry London / Morgan Stanley   8 Oct 2008 9:07PM ET
Re: Representing a double as a Fast scaled decimal
Walter Mascarenhas / GeoCAD   8 Oct 2008 9:58PM ET
Re: Representing a double as a Fast scaled decimal
Daniel May / SpryWare, LLC   9 Oct 2008 9:47AM ET
Re: Representing a double as a Fast scaled decimal
Daniel May / SpryWare, LLC   9 Oct 2008 10:48AM ET
Re: Representing a double as a Fast scaled decimal
Walter Mascarenhas / GeoCAD   9 Oct 2008 11:45AM ET
Re: Representing a double as a Fast scaled decimal
Dimitry London / Morgan Stanley   9 Oct 2008 11:16PM ET
Re: Representing a double as a Fast scaled decimal
Walter Mascarenhas / GeoCAD   10 Oct 2008 7:30AM ET
Re: Representing a double as a Fast scaled decimal
Dimitry London / Morgan Stanley   9 Oct 2008 11:04PM ET