Bit Operations

John Machin sjmachin at lexicon.net
Wed Nov 28 17:33:53 EST 2007


On Nov 29, 9:20 am, "Gianmaria Iaculo - NVENTA"
<gianma... at hotmail.com> wrote:
> John can you make an example of this solution?

Which possible solution? (a) 32-bit floating point (b) 32-bit integer
(c) packed decimal

> You maen that a more compact
> way is possible???

More compact than what? If your coordinates are all 8-digit decimal
numbers, then each of the above possible solutions will take 32 bits
per number. Which you could use depends on the (unstated) range and
precision of your coordinates. Also, you'll maybe notice that my
comment about using a dictionary for possible solution (c) was a
possible SPEED enhancement, not a compression enhancement.



More information about the Python-list mailing list