[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] âCEP(50) 0.009 meters
From: |
Gary E. Miller |
Subject: |
Re: [gpsd-dev] âCEP(50) 0.009 meters |
Date: |
Mon, 25 Jul 2016 19:22:01 -0700 |
Yo Hal!
On Mon, 25 Jul 2016 18:48:59 -0700
Hal Murray <address@hidden> wrote:
> > Works for me: %.9f
>
> 9 is a small number.
Yup! One or two more than I need. 7 is about a centi-meter.
> What I was trying to say is that if you print out a number and read
> it back in, you may not get the same low order bits. If they matter,
> you may get a different result if you work with the numbers before
> printout as compared to reading in the numbers in and doing the same
> computation.
I'm not seeing that in Python. Not seen that in C for a long time.
But that is why I'm unsing %.9f when I only need %.7f
I'm not that worried if I get 1.999999999 instead of 2.000000000
> If it matters, print it out in hex.
Is there a standard for import/export of IETF 754 in hex?
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
address@hidden Tel:+1 541 382 8588
pgppnLOty1_2m.pgp
Description: OpenPGP digital signature