Rounding Numbers

Hi I need to either round a number up or down depending on the users choice.

For example: 3194 can be rounded to either 3200 or 3190
3194 can be rounded to either 3200 or 3190
3019 can be rounded to either 3010 or 3020

How can I do this?

Thanks
Do you have some code already? Maybe you should look at the module ('%') operation, aldo there're a lot of ways to solve this.

Ps. Sorry, we won't give you your code, aldo we'll always help you when we can. Btw, smart name ;)
Topic archived. No new replies allowed.