View Full Version : count totals (SUM) but remove decimal place?
August 3rd, 2008, 01:37 PM
Need a php expert, I'm counting the total of images but the result always shows a decimal point > 3.529
how can i make this a whole number without the point?
August 3rd, 2008, 01:42 PM
why would it use a decimal unless you have modified the code? Our code should print
So have you modified the code? You may want to not use the number_format php function on your result to just have it a number with no formatting.
August 3rd, 2008, 02:46 PM
Yeah, its another script... i searched high & low for the reason why the totals were being formatted in this way, then i found it in a template and saw how it was being done, i fixed it via editing the template, so cool.... and thanks
August 3rd, 2008, 06:26 PM
Not a problem yeah figured it had to be some other coding.
vBulletin® v3.8.1, Copyright ©2000-2015, Jelsoft Enterprises Ltd.