Answered
rounding number to nearest 500
also trying to round a number to the nearest 500
this number range is from 1 to 1 million.
i have looked into ceiling but i don't think it can do what i need.
I tried using len() and cfset to break apart the number and dynamically increasing/decreasing it to suit my needs but thats not doing it reliably enough.
Finally i tried a straight up cfif statement woriing on the number ranges but i am overloading the if statement.
Any ideas on a simple coding solution for this? just wanna look at a number thats between 1 and 1 million and round it to the hearest 500 or 100.
this number range is from 1 to 1 million.
i have looked into ceiling but i don't think it can do what i need.
I tried using len() and cfset to break apart the number and dynamically increasing/decreasing it to suit my needs but thats not doing it reliably enough.
Finally i tried a straight up cfif statement woriing on the number ranges but i am overloading the if statement.
Any ideas on a simple coding solution for this? just wanna look at a number thats between 1 and 1 million and round it to the hearest 500 or 100.