Posted on February 29, 2008 at 1:18 pm

Leap Year Math

So, today is February 29th. Yay leap year!

I don’t know if it’s just me, but I don’t remember ever being taught that leap year had actual rules of when it happens, and that sometimes there’s not a leap year when you’d expect there to be. They were talking about some mathematical equation on the radio yesterday and the people on the radio were very confused.

So, for those of you that, like me (and by me, I mean Katie of Kat Scratch Fever and KSF To-Go), were not taught the Rules of Leap Year, I present this simple algorithm!

if year modulo 400 is 0 then leap
else if year modulo 100 is 0 then no_leap
else if year modulo 4 is 0 then leap
else no_leap

Hopefully that clears it all up for you. Happy Friday!
PS: I’m running FFAF on my site, feel free to drop by and make a post!


All works © and their respective authors.

RSS | WDS

Blogged.com Blog Directory

Creative Commons License
This work is licensed under a Creative Commons 3.0 License.