MyBB-Plugins Forums

Full Version: How to remove decimal?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

Is there a way to remove the decimal point? im wanting it so that it just shows the points without the decimal point in it.

Thanks
Steve
Set decimal to 0?
I have done this and it doesnt seem to remove the decimal

Steve
Are you sure about that? If it doesn't, it's a bug in your PHP installation. Here's how it works:
PHP Code:
number_format($pointsintval($mybb->settings['newpoints_main_decimal'])) 

If the second parameter is 0, it won't use any decimal places, at least that's what the example seems to show at PHP.NET http://php.net/manual/en/function.number-format.php