In a stored procedure I have an expression like
select @some_val_in_percents = (@total_val / 100) * @some_val
If I use the Round
Round
Round will be calculated after its contents is evaluated.
Therefore (@total_val / 100) * @some_val will be rounded.
(@total_val / 100) * @some_val