how to round of the value after finding the avg in sql

Recommended Answers


Jump to Post

All 3 Replies


there are many methods in MSSQL depending on your requirement(ceiling(),round() or floor())

  • ceiling() method :- Returns the smallest integer greater than, or equal to, the specified numeric expression.
  • round() method :- Returns a numeric value, rounded to the specified length or precision.
  • floor() method :- Returns the largest integer less than or equal to the specified numeric expression.

take a look at all mathematical functions avialable

thank u

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.