set this.min as min(a,b), this.max as max(a,b)
max - min
quantize!round max and min by step and add and sub step
See Implementation