Question
Calculate with negative prefix
Hi,
I'm seeing code like this.
<cfset variables.AltTotalPrice = -(-Val(Order.TotalPrice) - Val(variables.TotalAltAmountRemaining))>
What does "(-Val(Order.TotalPrice)" do?
I created a simple test and it seems it is just returning negative values.
Can someone shed light why does a previous developer doing this?
Thanks.
