From the Minecraft wiki:
"In addition, in Beta 1.7 an 'f' value was added, which indicates the direction the player is facing, 0 being the direction in which the sun sets, and it goes counter clockwise from there: 1 being the direction in which the clouds move, 2 and 3 are opposite to 0 and 1 respectively."