Picture from Encarta

Y2K Code

Y2K Code
This computer code, part of a simple program calculating interest on a bank loan, gives an example of what became known as the Year 2000 problem, the "millennium bug", or Y2K. The program, which uses a two-digit date standard that is responsible for the Y2K bug, 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 would have gone awry as a result. Many countries invested huge amounts of money in the run-up to New Year 2000 to replace such date codes with a four-figure system, but predictions of computer meltdown proved to be alarmist.
© Microsoft Corporation. All Rights Reserved.
Appears in these articles
Millennium
* Exclusively for MSN Encarta Premium Subscribers Join Now
Have Your Say
Encarta Message Boards (© Rubberball/Jupiterimages)
Encarta Products
Upgrade your experience

© 2008 Microsoft