Is there a way to round up to the nearest 50,000 in PHP?
I’ve investigated round, but the docs don’t suggest a way to do this, and it looks as though it is only for rounding up/down to the nearest numner. Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Divide by the number you want to round against, do the rounding, then multiply by it again.