On 05/11/2010 11:28 AM, David B Teague wrote:
> On 5/10/2010 7:01 PM, James Knott wrote:
>> JOE Conner wrote:
>>>>
>>> Not at all, because the same number is also be used for date AND time.
>>
>> Both date and time are normally integers.  Like with money, you
>> wouldn't normally use floating point because you can't be guaranteed a
>> correct result.  With FP, you can get round off errors.
> 
> Round off with fp numbers occurs when you do arithmetic. Nothing but
> comparisons and swaps are used in sorting.
> 
> Now I'm curious. Are arithmetic operations used on dates? Could round
> off be a concern?

There are occasions when you want to add or subtract time or date from
the current value, for example if you need to know the difference in
time or between two events.  I don't think there'd be much call for
stuff line sin(date) though.  ;-)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to