- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Which non-numeric values? 'A' is 65, 'D' is 68, even '-' is a number. If it's ASCII, it's base 128, if latin1, base 256, and if Unicode, uh, base 2^21 or something like that.
Requiescat in pace, Mitch Hedberg.
A superfluous beach is an unnecessary littoral.
This message has been brought to you by the letter '5' and the number C.
Admin
He gets a busy signal (because he's on the phone!)
Admin
<FONT color=#0000cc>Beechwood 4-5789</FONT>
<FONT color=#0000cc>Pennsylvania 6-5000</FONT>
1-800-DIAL-SEX
are all examples of valid phone NUMBERS
Admin
'-' is not a number you idiot. Congrats on knowing what ASCII is but in your quest to show your great knowledge of ASCII, you lost sight of what you were saying.
If '-' is a number, how about I write a check to you for - dollars. P is a letter. There is a numeric code for it that is how A is stored but that is quite different than P being a number.
Go back to the woodshed and wait. Your stupidity is running rampant.
Admin
I am a human. (021)260-6781 is a phone number. My natural trait of cognition allows me to realise that I should ignore the brackets and the dash when dialling.
It also allows me to realise that while (021)260-6781 is actually a sequence of numbers and non-numeric characters, referring it to as a "phone sequence of numbers and non-numeric characters" makes me sound like an ass who can only think in binary.
And, when I refer to it as a phone number, and speak it aloud, I do not tell my friends that my phone number is Left Ellipisis, Oh Two One, Right Ellipsis, because I realise that for a human, the non-numeric character merely aid memorisation and comprehension of a sequence of numbers by introducing logical breaks.
And I sincerely hope I never get into a conversation with anyone pedantic as a certain poster at any parties I attend.
Admin
Oh my god. Is that CLARION code? TPS - the Topspeed file format. Oh god, how I remember that. Now I've got to go somewhere and scrub my brain.
Admin
" Someone mentioned earlier in this thread a good general rule: If you are not performing any mathematical operations on the "number", then you should probably store it as a string. There is no case where you would be performing math on SSNs and phone numbers(except perhaps comparison). "
This is a good general rule that I live by. The only good exception is if storage space is a concern and you are confident the value will never become alphanumeric in the future.
SSN:
Char: 11 bytes - unsigned integer: 4 bytes
Phone number:
Char 12 bytes - unsigned integer: 4 bytes
In todays world, storage is not much of a concern so really there is not much of a reason in most cases to follow that rule.
Admin
Well of course you wouldn't say "left ellipisis" (sic) since there's not an ellipsis in a phone number. Here's some help chief: http://dictionary.reference.com/search?r=2&q=ellipsis
Admin