[Xerte] Q for math heads

Dave Burnett d_b_burnett at hotmail.com
Sat Oct 22 12:50:57 BST 2011



I know what I want to do and could probably get it to work, but I suspect there is an elegant way to achieve this.

I need to figure out where an index falls in a grid of checkboxes.
ex:

5 questions, 3 possible answers for each question.
Looping through the checkboxes, left to right, top to bottom

1,2,3
4,5,6
7,8,9
10,11,12
13,14,15

What equation do I use to determine which set of answers 8 is in?

I think I would divide by 3, rounding up if there is a remainder?
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20111022/ba1390bc/attachment.html>


More information about the Xerte mailing list