Hi… Anyone know how to do the math to make a step animation?
(imagine the behavior of a ticking clock. the needle is rotating in steps, not in linear way like a fan.)
For example:

Rotation 360 degree with 5 degree jump interval.
I know we can use floor, ceiling and round to skip the decimal, so it becomes every 1 step. how to make it every 5 step? 
moving in x axis with 5 interval
so if we look at the graph, it’s not straight diagonal line, but more like a stairs. 
lets say gradient, black to white from smooth transition, into separate bands with solid color shades. maybe divided into 5 for example. so the interval is every 20%.
I’d prefer a math patch method, not script.
can someone help me please? thank you