gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-dev] Print offset in ntpshmmon?


From: Gary E. Miller
Subject: Re: [gpsd-dev] Print offset in ntpshmmon?
Date: Fri, 1 May 2015 12:06:36 -0700

Yo Beat!

On Fri, 01 May 2015 21:00:08 +0200
Beat Bolli <address@hidden> wrote:

> On 01.05.15 20:53, Gary E. Miller wrote:
> > Yo Beat!
> > 
> > On Fri, 01 May 2015 20:46:31 +0200
> > Beat Bolli <address@hidden> wrote:
> > 
> >> On 30.04.15 20:08, Gary E. Miller wrote:
> >>
> >>> How long is a python long?  32 bit longs are not big enough.  64
> >>> bit longs will not be big enough in 2038.  Google '2038  NTP'.
> >>
> >> Python longs have unlimited (well, technically limited by available
> >> RAM) size. No problem to calculate the 1000!.
> > 
> > Got a canonical reference for that?
> 
> https://docs.python.org/2/reference/lexical_analysis.html#integer-and-long-integer-literals

That is for literals.  What about in computations?

> > How long is a float?
> 
> From the very following section on the page above:
> 
> > The allowed range of floating point literals is implementation-
> > dependent.
> 
> :-( I assume this means that CPython floats use the C compiler's
> double.
> 
> How about using https://en.wikipedia.org/wiki/Long_double ?

In theory, yes, on am ARM with no FPU that would be criminally slow.

So depends on the application I guess.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97701
        address@hidden  Tel:+1(541)382-8588

Attachment: pgp5f4nFuUHiR.pgp
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]