[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: variables for yesterday and today
From: |
ken |
Subject: |
Re: variables for yesterday and today |
Date: |
Tue, 15 Oct 2002 13:38:34 -0400 (EDT) |
Yes, that's much better. But it occurs to me also that this always
resolves to 65536. So why not just use the constant and save processing
time? The answer is that this would cause an overflow.
But then the expression "(% 86400 (lsh 1 16))" also always yeilds one
and the same integer expression, 20864, and "(/ 86400 (lsh 1 16))"
always yeilds 1. Is there any reason not to replace these expression
with the constants they're always going to resolve to?
Thanks everyone for their assistance.
ken
--
AMD crashes? See http://cleveland.lug.net/~ken/amd-problem/.
Spake Daniel Jensen at 18:05 (UTC+0200) on Tue, 15 Oct 2002:
= ken <ken@cleveland.lug.net> writes:
=
= > Thanks for the reply, but this isn't working for me. Maybe there's more
= > to it.
= >
= > The problem seems to be that
= >
= > (<< 1 16)
= >
= > yeilds: "Symbol's function definition is void: <<".
= >
= > I'm using GNU Emacs 20.7.1 (if that could be relevant).
=
= Try using (lsh 1 16) instead.
=
=