Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Round to nearest 5

$
0
0
I would like to create a UDF that takes a value and returns a number that is rounded up to the nearest value divisible by 5.  For example, if I send it 7 it returns 5, if I send it 528 it returns 530, etc.  Thanks.

Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>