Elegant way to negate a numeric value based on a boolean value
<p>I have a decimal variable that I would like to negate if a boolean variable is true. Can anyone think of a more elegant way to do it than this:</p>

<pre><code>decimal amount = 500m;
bool negate = true;

amount *= (negate ? -1 : 1);
</code></pre>

<p>I'm thinking something along the lines of bitwise operators or a strictly mathematical implementation.</p>
