Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #9794
| From | James Stein <mathgroup@stein.org> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Question about DayOfWeek |
| Date | 2012-04-25 04:42 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jn7vb1$6h3$1@smc.vnet.net> (permalink) |
| References | <201204240934.FAA24505@smc.vnet.net> |
Roughly speaking, "==" only compares things that are comparable.
In cases like these, use "===" which demands "sameness" on both sides.
I make this mistake often -- not a typo, but a thinko.
On Tue, Apr 24, 2012 at 2:34 AM, Kent Holing <KHO@statoil.com> wrote:
> DayOfWeek[{1975,1,1}]==Wednesday gives True (as it should), but DayOfWeek[{1975,1,1}]==Thursday gives
> Wednesday == Thursday and not False, as it should? Why is it so?
>
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Question about DayOfWeek James Stein <mathgroup@stein.org> - 2012-04-25 04:42 +0000
csiph-web