On 9/27/2012 10:05 PM, Chris Payne wrote:
I'm having one of those nights where nothing is working, please help
What I have is this:
$rounded_number = round($test, -3);
Here's the problem i'm having, I need it to increment to the nearest 1000
but it seems to only work if the number is over 500. For example:
123666 WILL round to 124000 BUT if I put 123085 (As an example) it doesn't
round it, it just stays at 123085 - I know it's probably something totally
ridiculously simple but i'm having a mental block tonight.
Any help would really be appreciated.
I just tried it here - http://ideone.com/0icSG and it seems to work fine.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php