What does "01" mean?
Don McLane
dmclane at u.washington.edu
Tue Jun 21 05:03:54 UTC 2005
This is a new-user question. I'm typing things in a workspace and
sending them to the transcript (and, as it turns out, learning to use
the debugger). I decided to challenge myself by reviewing some discrete
mathematics. So one statement read:
(5 raisedTo: (r-1) modulo: r) = 1 ifFalse: [successFlag := false].
where r was big (in one of my tests it was 501659). The debugger
reported that the left hand side of the '=' sign evaluated to "01"--what
does the leading '0' mean? Why does the equality test fail? Am I crazy?
Thanks,
Don
More information about the Squeak-dev
mailing list
|