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)

Craft CMS Meta

Q&A about the site for administrators, end users, developers and designers for Craft CMS

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 main site
loading Hold tight while we fetch your results