Go Back   AnandTech Forums > Social > Off Topic

Forums
· Hardware and Technology
· CPUs and Overclocking
· Motherboards
· Video Cards and Graphics
· Memory and Storage
· Power Supplies
· Cases & Cooling
· SFF, Notebooks, Pre-Built/Barebones PCs
· Networking
· Peripherals
· General Hardware
· Highly Technical
· Computer Help
· Home Theater PCs
· Consumer Electronics
· Digital and Video Cameras
· Mobile Devices & Gadgets
· Audio/Video & Home Theater
· Software
· Software for Windows
· All Things Apple
· *nix Software
· Operating Systems
· Programming
· PC Gaming
· Console Gaming
· Distributed Computing
· Security
· Social
· Off Topic
· Politics and News
· Discussion Club
· Love and Relationships
· The Garage
· Health and Fitness
· Merchandise and Shopping
· For Sale/Trade
· Hot Deals with Free Stuff/Contests
· Black Friday 2013
· Forum Issues
· Technical Forum Issues
· Personal Forum Issues
· Suggestion Box
· Moderator Resources
· Moderator Discussions
   

Reply
 
Thread Tools
Old 12-29-2009, 12:26 PM   #1
TechBoyJK
Lifer
 
TechBoyJK's Avatar
 
Join Date: Oct 2002
Posts: 13,392
Default are all us zip codes 5 digits?

Are all us zip codes 5 digits?

aka St. Louis 63102

I know there can be 63102-4567 but thats not what im talking about.. are there any 4 or 7 digit zips??
__________________
Originally posted by: n0cmonkey
You're being difficult. You have not provided us with the information we need to troubleshoot the problem. You have not given us errors, you're vague about where the problem is, you are not answering the questions we ask. In short, you DON'T KNOW HOW TO THINK. Give back that piece of paper you think makes your intelligent, apologize, destroy your computer and go live in the woods kid.
TechBoyJK is offline   Reply With Quote
Old 12-29-2009, 12:28 PM   #2
nickbits
Diamond Member
 
nickbits's Avatar
 
Join Date: Mar 2008
Location: Southeast Michigan
Posts: 3,631
Default

everything is 5 or 5+4
nickbits is offline   Reply With Quote
Old 12-29-2009, 12:28 PM   #3
Abel007
Platinum Member
 
Abel007's Avatar
 
Join Date: Jun 2001
Posts: 2,169
Default

Quote:
Originally Posted by TechBoyJK View Post
Are all us zip codes 5 digits?
Yes. http://en.wikipedia.org/wiki/ZIP_code
Abel007 is offline   Reply With Quote
Old 12-29-2009, 12:32 PM   #4
edro
Lifer
 
edro's Avatar
 
Join Date: Apr 2002
Location: Columbus of Ohio
Posts: 22,085
Default

Yes, although some start with 0.
edro is offline   Reply With Quote
Old 12-29-2009, 12:33 PM   #5
FoBoT
Super Moderator
 
FoBoT's Avatar
 
Join Date: Apr 2001
Location: Holden MO
Posts: 63,088
Default

they are nine digits
Quote:
ZIP + 4
In 1983, the U.S. Postal Service began using an expanded ZIP code system called "ZIP + 4", often called "plus-four codes", "add-on codes" or "add ons." The Postal Service has a "Find a ZIP Code" feature on its website, which provides an address format that is most compatible with its optical character recognition (OCR) scanners.
A ZIP + 4 code uses the basic five-digit code plus four additional digits to identify a geographic segment within the five-digit delivery area, such as a city block, a group of apartments, an individual high-volume receiver of mail or any other unit that could use an extra identifier to aid in efficient mail sorting and delivery. Initial attempts to promote universal use of the new format met with public resistance, and today the plus-four code is not required. In general, mail is read by a multiline optical character reader (MLOCR) that almost instantly determines the correct ZIP + 4 code from the address and—along with the even more specific delivery point—sprays a Postnet barcode on the face of the mailpiece that corresponds to 11 digits.
For post-office boxes, the general (but not invariable) rule is that each box has its own ZIP + 4 code. The add-on code is often one of the following: the last four digits of the box number (e.g., PO Box 58001, Washington DC 20037-8001), zero plus the last three digits of the box number (e.g., PO Box 12344, Chicago IL 60612-0344), or, if the box number consists of fewer than four digits, enough zeros prepended to the front of the box number to produce a four-digit number (e.g., PO Box 52, Garrett Park MD 20896-0052). However, there is no uniform rule, so the ZIP + 4 code must be looked up individually for each box.
It is common to use add-on code 9998 for mail addressed to the postmaster (to which requests for pictorial cancellations are usually addressed), 9999 for general delivery and other high-numbered add-on codes for business reply mail. For a unique ZIP code (explained below), the add-on code is typically 0001.
__________________
“Sometimes the questions are complicated and the answers are simple.”
― Dr. Seuss
FoBoT is offline   Reply With Quote
Old 12-29-2009, 01:05 PM   #6
oldsmoboat
Elite Member
 
oldsmoboat's Avatar
 
Join Date: Mar 2000
Location: Kaliforniastan
Posts: 46,237
Default

Chuck Norris' zip code is 1.
__________________
For A Friend

It's not the odds that guide me, it's the stakes
oldsmoboat is offline   Reply With Quote
Old 12-29-2009, 01:15 PM   #7
Chronoshock
Diamond Member
 
Chronoshock's Avatar
 
Join Date: Jul 2004
Posts: 4,861
Default

No offense, but your address parser is probably going to be broken. Instead of trying to reinvent it, I'd suggest finding one that already exists...
Chronoshock is offline   Reply With Quote
Old 12-29-2009, 01:23 PM   #8
TechBoyJK
Lifer
 
TechBoyJK's Avatar
 
Join Date: Oct 2002
Posts: 13,392
Default

lol.. it almost works already. And one doesn't exist in the context I need it. I found a few entries in the zip db that were like 501 but thats only because it wasn't displaying the leading 00's, which threw me off.

It can already grab the zip out and find the city state.
__________________
Originally posted by: n0cmonkey
You're being difficult. You have not provided us with the information we need to troubleshoot the problem. You have not given us errors, you're vague about where the problem is, you are not answering the questions we ask. In short, you DON'T KNOW HOW TO THINK. Give back that piece of paper you think makes your intelligent, apologize, destroy your computer and go live in the woods kid.
TechBoyJK is offline   Reply With Quote
Old 12-29-2009, 01:40 PM   #9
thepd7
Diamond Member
 
Join Date: Jan 2005
Location: Boston, MA
Posts: 9,428
Default

yes. everyone knows this.
__________________
Proud member of the Anti-Lunar Looney Coalition

110-0-0 heat


Official Member of the L&R "Stance of Dominance" Alliance

Quote:
Originally posted by: Gargen

*thepd7 whips out his massive stance of dominance*
thepd7 is offline   Reply With Quote
Old 12-29-2009, 02:00 PM   #10
TechBoyJK
Lifer
 
TechBoyJK's Avatar
 
Join Date: Oct 2002
Posts: 13,392
Default

Quote:
Originally Posted by thepd7 View Post
yes. everyone knows this.
thats what I thought.. then i found a 3 digit zip code in a zipcode database. I just didn't realize it wasn't showing the leading 00. It caused me a 'wtf' moment
__________________
Originally posted by: n0cmonkey
You're being difficult. You have not provided us with the information we need to troubleshoot the problem. You have not given us errors, you're vague about where the problem is, you are not answering the questions we ask. In short, you DON'T KNOW HOW TO THINK. Give back that piece of paper you think makes your intelligent, apologize, destroy your computer and go live in the woods kid.
TechBoyJK is offline   Reply With Quote
Old 12-29-2009, 02:13 PM   #11
Train
Lifer
 
Join Date: Jun 2000
Posts: 12,989
Default

Quote:
Originally Posted by edro View Post
Yes, although some start with 0.
And some start wih 00

IIRC the first zip code is 00510. A bitch when coding because the computer always wants to chop off leading zeros. Some software is friendly enough to accept just the 510, others assume you made an error so you have to add the leading zeros.
__________________
.
Train is offline   Reply With Quote
Old 12-29-2009, 04:01 PM   #12
Evadman
Administrator Emeritus
Elite Member
 
Evadman's Avatar
 
Join Date: Feb 2001
Posts: 30,973
Default

Quote:
Originally Posted by Train View Post
Some software is friendly enough to accept just the 510, others assume you made an error so you have to add the leading zeros.
SET @ZipCode = right('00000'+@ZipCode,5)

strZipCode = right("00000" & cstr(strZipCod),5)

function IsAZip(value) {
var re = /^\d{5}([\-]\d{4})?$/;
return (re.test(value));
}

bla bla bla
__________________
Dan (Schmin) 1981-2003. Rest in Peace
I want to drinkify all my snacks. Chewing is for people living in the 19th century.
My Blog
Evadman is offline   Reply With Quote
Old 12-29-2009, 04:11 PM   #13
SirStev0
Lifer
 
Join Date: Nov 2003
Posts: 10,332
Default

In Australia they are 5 but they are all backwards. I mean its on the other side of the world.
__________________
when you have no basis for argument, abuse the plaintiff ~Cicero

Franklin: like hell i am, what are we going there for?
Hopkins: for the whoring and the drinking!

wwjd... for a klondike bar...
SirStev0 is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 06:08 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.