in reply to Datatype and pack/unpack
It's not called ASCII because it's not an ASCII character. There's some history involved which makes the data type name a bit misleading. It's much like weight and mass in physics: A pound of mass weighs a pound of weight because we're on the surface of the earth. On the moon, the mass and weight are drastically different.
In early computer times, we would store a character in a byte. But even then, a character wasn't necessarily ASCII. If you write an 0x40 to most terminals, you'd get an "@" on the screen, because most terminals were ASCII. But if you wrote it to an EBCDIC terminal, you'd see a " " instead.
Think of it as an eight-bit signed integer rather than a graphic symbol.
...roboticus
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Datatype and pack/unpack
by theantler (Beadle) on Mar 19, 2010 at 18:24 UTC | |
by Anonymous Monk on Mar 19, 2010 at 20:04 UTC | |
by theantler (Beadle) on Mar 19, 2010 at 20:24 UTC |