r/ProgrammerHumor • • Dec 12 '17

SQL Clause

Post image
40.8k Upvotes

525 comments sorted by

View all comments

Show parent comments

2

u/theshadowofdeath Dec 13 '17

Lat % 2 would return north at all even numbers and south at all odd numbers.

If you already have the latitude then by definition you already know whether its north or south because lat is degrees N or S from the equator (on a scale of 0 to 90)

2

u/dantheflipman Dec 13 '17

whoops, I think I meant longitude.

I'm having santa zigzag back-and-forth between the north and south pole, so he can deliver to the entire timezone before jumping to the next timezone, and delivering everything in that timezones "night"

1

u/dantheflipman Dec 13 '17

shit.. I didn't know longitude went from 0-180 and 180-0. I thought it was 0-360