Post #171,921
8/31/04 11:31:50 AM
8/31/04 11:32:44 AM
|
Why do you expect hex to be treated differently from decimal
?
When you see a decimal constant 4294967294, do you expect it to mean -2?
--
"...was poorly, lugubrious and intoxicated."
-- Patrick O'Brian, "Master and Commander"
Edited by Arkadiy
Aug. 31, 2004, 11:32:44 AM EDT
|
Post #171,926
8/31/04 11:42:16 AM
|
Re: Why do you expect hex to be treated differently
In FORTH this issue never arises. An integer is what it is in relation to base 2 and the number of available bits in it. Signed vs. unsigned is a stupid, needless complication.
So: TRUE is 111111...1 and FALSE is 000000...0. There is only one TRUE and one FALSE and NOT TRUE is FALSE. Something like 1101001..1 has no logical value.
The programmatic representation is immaterial.
-drl
|
Post #171,953
8/31/04 12:37:46 PM
|
Man, that's a good question!
I suppose because I can specify a bit pattern directly, and I expected that bit pattern to be interpreted by the underlying hardware directly. But I must say, I now see your point, and it is a good one.
Thanx!
jb4 shrub\ufffdbish (Am., from shrub + rubbish, after the derisive name for America's 43 president; 2003) n. 1. a form of nonsensical political doubletalk wherein the speaker attempts to defend the indefensible by lying, obfuscation, or otherwise misstating the facts; GIBBERISH. 2. any of a collection of utterances from America's putative 43rd president. cf. BULLSHIT
|
Post #172,013
8/31/04 4:42:17 PM
|
Now that's clarity!
Alex
"If you can control the meaning of words, you can control the people who must use the words." -- Philip K. Dick, US science fiction writer
|
Post #172,017
8/31/04 5:00:03 PM
|
Nope, it's bad math
A 32 bit integer has 4...mumble possible values. If you really want integers and not whole numbers, then implicitly these are signed, which requires a bit. So there are 2...mumble positive values, 2...mumble-1 negative values, and zero.
If you want 4...mumble integers you need more bits.
-drl
|
Post #172,022
8/31/04 5:19:13 PM
|
But, counters of real things don't need negative values.
Alex
"If you can control the meaning of words, you can control the people who must use the words." -- Philip K. Dick, US science fiction writer
|
Post #172,023
8/31/04 5:20:08 PM
|
I'd like to add a negative number of votes for Bush. ;-)
To deny the indirect purchaser, who in this case is the ultimate purchaser, the right to seek relief from unlawful conduct, would essentially remove the word consumer from the Consumer Protection Act - [link|http://www.techworld.com/opsys/news/index.cfm?NewsID=1246&Page=1&pagePos=20|Nebraska Supreme Court]
|
Post #172,025
8/31/04 5:23:34 PM
|
That only works on Diebold machines. :)
Alex
"If you can control the meaning of words, you can control the people who must use the words." -- Philip K. Dick, US science fiction writer
|
Post #172,024
8/31/04 5:21:51 PM
|
Certainly
But then, Ark's comment loses its pithiness (\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd)
-drl
|
Post #172,046
8/31/04 6:59:29 PM
|
"Expressive", not "pithy" :)
"pithy" I guess would be better translated as poisonous, ядовитый - it's an idiomatic usage.
--
"...was poorly, lugubrious and intoxicated."
-- Patrick O'Brian, "Master and Commander"
|
Post #172,047
8/31/04 7:03:32 PM
|
Re: "Expressive", not "pithy" :)
Why can I see your Cyrillic but not mine? Some encoding mojo?
-drl
|
Post #172,172
9/1/04 9:33:56 AM
|
Dunno.
I see yours fine in Mozilla on Win 2000 after I select the proper code page - Cyrillic Windows-1251
--
"...was poorly, lugubrious and intoxicated."
-- Patrick O'Brian, "Master and Commander"
|