it is easy to use round function in asp to round off decimal digit. but how can i round off number (ex 5862) to next 10 (as 5870) using asp.
When I see no pratical solution I do my own function. try this function RoundToNextTen(num) if (num / 10) = CLng(num / 10) then RoundToNextTen = num else RoundToNextTen = (CLng(num / 10) + 1) * 10 end if end function
The simplest way would be this Private Function RoundToTen(ByVal num) Return num - (num Mod 10) + 10 End Function