http://stackoverflow.com/questions/9266214/sql-rounding-not-always-rounding-up

1

Please login or register to vote for this query.

(click on this box to dismiss)

http://stackoverflow.com/questions/9266214/sql-rounding-not-always-rounding-up

Computational Science

Q&A for scientists using computers to solve scientific problems

DECLARE @tbl AS TABLE (num1 float, num2 money);
INSERT INTO @tbl VALUES (15, 0.033), (5, 0.045);

Select num1, num2, num1 * num2, round(num1 * num2, 2)
from @tbl;

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results