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

0

Please login or register to vote for this query.

(click on this box to dismiss)

Lifehacks

Q&A for people looking to bypass life's everyday problems with simple tricks

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, 1)
from @tbl;

Enter Parameters

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