[ntp:questions] Re: Tinker and tos configuration commands....
David L. Mills
mills at udel.edu
Tue Feb 8 04:24:05 UTC 2005
One thing I try never to do is make a floating point variable into a
state variable, with the exception of zero. In other words, 500 - 1 LSB
is the same as 500 is the same sas 500 + 1 LSB. If you don't take that
care, rounding can cause real trouble.
Brad Knowles wrote:
> At 8:56 PM +0000 2005-02-07, brad at shub-internet.org wrote:
>> I know we're talking about floating point math, in which nothing is ever
>> exact. However, what I'm saying here is that I think we want to give
>> ourselves the best possible chance to be able to detect when we are
>> absolutely within the limits, and then take other action (as
>> when we reach or exceed the limits.
> In this particular case, I believe that changing these comparisons
> to strict less-than and greater-than will allow us to detect a drift
> file that has been pegged at 500, and to do the appropriate thing with
> that -- toss it and recalculate.
More information about the questions