Jump to the post that solved this thread.
Solved: 7 Years, 11 Months, 2 Weeks ago Stats with decimal
#1
Solved: 7 Years, 11 Months, 2 Weeks ago
This user has been denied support. This user has been denied support.
Hello,
I'm currently using these variables to show the statistics in a sidebar:


{$stats['numposts']}
{$stats['numthreads']}
{$stats['numusers']}


Sadly, there's no decimal if the number is above 1,000.
Is there a way to enable the decimals?
Reply
#2
Solved: 7 Years, 11 Months, 2 Weeks ago
if you are referring to the numeric separator, navigate to below location and put required dot or comma
admin panel >> configuration >> settings >> General Configuration >> Thousands Numeric Separator
Reply
#3
Solved: 7 Years, 11 Months, 2 Weeks ago
This user has been denied support. This user has been denied support.
(2015-02-18, 04:55 PM).m. Wrote: if you are referring to the numeric separator, navigate to below location and put required dot or comma
admin panel >> configuration >> settings >> General Configuration >> Thousands Numeric Separator

Please read my post. Rolleyes
Reply
#4
Solved: 7 Years, 11 Months, 2 Weeks ago
^ I might have mistaken but do we have fraction decimal point for the number of posts, threads & users

I am not considering the averages shown on the stats page (eg.)
Reply
#5
Solved: 7 Years, 11 Months, 2 Weeks ago
You can use the function number_format.
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)