Numbers are not always displayed as Positive.
Gridview displays positive numbers and negative numbers differently.
999.99 is positive; (999.99) is negative.
In the formula
IF({Doc Type}="C",-{Total Dollar Value}*{% Comm}/100, {Total Dollar Value}*{% Comm}/100)
it is the -{Total Dollar Value} that makes the Commission negative.