Thanks for getting back to my question.
Javascript it is. That is the important part of my question.
This would be a sample of the type of equation we would need. X being the number entered in, and Y being the output:
Explanation:
if x= 1-2, then y=1;
(if ‘x’ is within the range 1-2, then ‘y’ equals 1)
but if x>2, then y=(x-1)/2+1
(if ‘x’ is greater than 2, then ‘y’ equals ‘x’ minus 1, divided by 2, plus 1 – rounded down to nearest integer)
Hope this makes sense. If not I apologize, I’m sure I’m probably not being clear.