Forum Moderators: coopster
ie: £131(1st number) to 174(2nd number) = £130 to 175
ie: £136(1st number) to 179(2nd number) = £135 to 180
...etc,
I was thinking along the following lines but someone said its best done mathematically:
if 0 = 0
if 5 = 5
1st number:
if last digit is 1, 2, 3, 4 = 0
if last digit is 6, 7, 8, 9, = 5
2nd number:
if last digit is 1, 2, 3, 4 = 5
if last digit is 6, 7, 8, 9, = 0
Does that make sense? If so, any ideas?
TIA
stuart
first number: floor($lower_price/5) * 5
second number: ceil($upper_price/5) * 5
Shawn