I'm dividing a monitary value into two monitary values, which need to sum up to the original value. I have written some SQL to do this, but just want to double check that I'm doing this efficiently:
In this example, the dollar amount is $102.33 (eventually, this value will be variable). It should divide into 51.17, and 51.16 (which it does). Although this accomplishes the goal, is it the correct way?
Code:
SELECT Round((102.33/2), 2) AS Half, 102.33-Round((102.33/2), 2) AS Half2
Thanks!