Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #9794 > unrolled thread
| Started by | James Stein <mathgroup@stein.org> |
|---|---|
| First post | 2012-04-25 04:42 +0000 |
| Last post | 2012-04-25 04:42 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Question about DayOfWeek James Stein <mathgroup@stein.org> - 2012-04-25 04:42 +0000
| From | James Stein <mathgroup@stein.org> |
|---|---|
| Date | 2012-04-25 04:42 +0000 |
| Subject | Re: Question about DayOfWeek |
| Message-ID | <jn7vb1$6h3$1@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 top | Article view | comp.soft-sys.math.mathematica
csiph-web