解決済み
Functions - Rounding by intervals
Hi there,
I was just wondering how you would go about rounding in intervals through functions?
For example -
If number is between 0-10, round as 10, 10-20 as 20, 20-30 as 30.
Cheers,
Mo
Hi there,
I was just wondering how you would go about rounding in intervals through functions?
For example -
If number is between 0-10, round as 10, 10-20 as 20, 20-30 as 30.
Cheers,
Mo
What you could do is to use the Ceil function which rounds to the next full integer.
So if you devide by then, then use Ceil and then multiply again by 10 you should get what you are looking for.
Though if 10 should be mapped to "20" it won't work, then you may need to check for @2785667 + 1 here
Ceil(@test / 10) * 10
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.