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.

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.

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

Are you sure about that? If it doesn't, it's a bug in your PHP installation. Here's how it works:
PHP Code:

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