![]() |
percentage code is way off on large boards
Can anyone plaese tell me what I am doing wrong in the following code that would cause larger boards with high post and thread counts to display these percentages really far off?
PHP Code:
15,300 Posts (15,300.00%) I have tried different variations of this and they all turn out the same. |
Don't know if this'll work or not, but try dividing by a hundred (or 10 or 1000):
PHP Code:
|
Thanks. Steve. I'll have someone with a large board test this and get back to you here with the results. ;)
|
Steve, do you know how to take the last 2 zeros after the decimal point off on a whole percent? Like if it is 50.00%, how would you make it so it showed up as 50%, but ONLY on whole percentages? If it is like 50.05%, I want that to show up.
|
you could round it;)
|
But that wouldn't leave it if it was 50.05%, would it? ;)
|
you could creat some kind if statement:)
|
Any examples? ;)
|
Quote:
PHP Code:
|
As long as it works, that's all that really counts. Thank you, sir. ;)
Would you have any ideas on the percentage problems for bigger boards? ) EDIT: How would I incorporate this with this code? PHP Code:
|
All times are GMT. The time now is 06:05 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|