About 30,000 results
Open links in new tab
  1. rounding - SQL Round Function - Stack Overflow

    Jul 10, 2009 · ROUND (748.58, -1) 750.00 the second parameter: Lenght, is the precision to which numeric_expression is to be rounded. length must be an expression of type tinyint, …

  2. Rounding off to two decimal places in SQL - Stack Overflow

    @Ram The question didn't specify the sql server engine - which is why i highlighted the round v cast on its own. The convert to numeric doesn't do rounding in all engines so if the calculated …

  3. sql server - Why ROUND () function adding too many trailing zeros ...

    Jun 10, 2025 · The ROUND function expects an "exact numeric or approximate numeric data type category" argument. When you use the ROUND function on the col column (which is a …

  4. SQL Server - How to round up or down decimals? - Stack Overflow

    I would like to be abble to round up or down 10.823. Expected result: rounding down = 10.82 rounding up = 10.83 Knowing that round(10.823, 2) only rounds down. How to round it up?

  5. Round sum of decimal column in sql - Stack Overflow

    Feb 22, 2014 · I'm using this code to sum decimal values. SUM(Amount) as TotalAmount Amount column is decimal datatype Amount decimal (10,4) After summing up the columns I get values …

  6. sql - ERROR: function round (double precision, integer) does not …

    I was having an expression inside the round function as first parameter, that expression was returning 'double precision' value. After so much efforts I finally could solve the issue by …

  7. SQL Server: round decimal number and convert to int (within Select)

    I am using the following line within a Select which returns a number with decimals, e.g. 33.33333. How can I round this within the Select and convert to integers so that I don't have decimals, e....

  8. Rounding to 2 decimal places in SQL - Stack Overflow

    Nov 1, 2013 · Also, the end user will see the country specific formatting of the server instead of his own PC. Also, consider rounding problems. If you round the values in the server and then …

  9. sql - How to round down to nearest integer in MySQL ... - Stack …

    111 How would I round down to the nearest integer in MySQL? Example: 12345.7344 rounds to 12345 mysql's round() function rounds up. I don't know how long the values nor the decimal …

  10. SQL Server round after division - Stack Overflow

    Apr 23, 2012 · Note also (in case you haven't already known it) that if both operands of the division operator are integers, SQL Server will perform an integer division, i.e. the result of the …