Picture from Encarta

Y2K Code

Y2K Code
This computer code, part of a simple program calculating interest on a bank loan, shows an example of what became known as the Year 2000 problem, or Y2K. The program, which uses the conventional two-digit date standard that is responsible for the Y2K bug, will read the last year of a loan that expires in 2000 as "00." The Y2K bug begins in line 1220, because the "TranDate.opYear" (for example, "99" for 1999) will never be less than the "LoanEndYear" of 00. Interest calculations will go awry as a result.
© Microsoft Corporation. All Rights Reserved.
Appears in these articles:
Millennium
* Exclusively for MSN Encarta Premium Subscribers. Join Now
Advertisement

Englishtown: Learn English online
Upgrade your Encarta experience
Encarta RSS Feeds
© 2008 Microsoft