.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Home >> Code Snippets >> SQL Query >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Round a number in sql

Posted By:Hiren Soni       Posted Date: August 29, 2010    Points: 10    Category: SQL Query    URL: http://www.dotnetspark.com  

Round a number in sql

learn how to Round a number in sql

For that you can make use of Round Function

round(expression, length)


ROUND(123.9994, 3) ==> 123.9990

ROUND(123.9995, 3 ==> 124.0000

ROUND(123.9994, 0) ==> 124

ROUND(123.45, -2) ==> 100


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend