hey,
i have a program that measures accelerometers angel.
so when the program starts i get a number representing at what angel the accelerometer is (if accelerometer is placed flat on the table it zero ). if i turn the accelerometer it gives me corresponding degrees.

what i want is that the program would store the maximum angel if the accelerometer was turned clock wise and the maximum angel if the accelerometer was turned anti-clock wise.

i hope this is a clear specification.
i have no idea how to do it just so you know the number varies from 0 360 received from accelerometer.

any suggestions will be greatly apreciated
thank you