special case zero in prettyNum
improve ticks algorithm