PDA

View Full Version : Maths Question


TimberFloorAu
02-10-2010, 09:20 PM
( apology posted in wrong forum before )

In forumhome_forumbit_level2_post

We have:

<li>{vb:rawphrase threads}: {vb:raw forum.threadcount}</li>
<li>{vb:rawphrase posts}: {vb:raw forum.replycount}</li>

Is it possible to create a Ratio score.

Essentially if a forum has 50 threads and 400 posts then the post to thread ratio is 8

So could we echo:

Threads: 50
Posts: 400
Ratio: 8

This is just a simplified version of what I want to do, but essentially x={vb:raw forum.replycount} / {vb:raw forum.threadcount}

Any suggestions please, ? thanks

dartho
02-16-2010, 08:42 AM
would {vb:math {vb:raw forum.replycount} / {vb:raw forum.threadcount}} work?