OldWilly
Programmer
- Mar 1, 2002
- 66
I've forgotten my high school math. Am trying to write a formula in Cold Fusion to accomplish the following:
sales + tax = grand total
The numbers I have are the tax rate and the grand total.
In other words, if the grand total is 100 and the tax rate
is 10%, what was the sales price? (I know the answer is NOT
90 + 10 = 100). The sales price is closer to 93 or 94.
So how do I write it in a CF formula ?
<CFSET tax = ? * ?> etc. <CFSET sales = ??>
sales + tax = grand total
The numbers I have are the tax rate and the grand total.
In other words, if the grand total is 100 and the tax rate
is 10%, what was the sales price? (I know the answer is NOT
90 + 10 = 100). The sales price is closer to 93 or 94.
So how do I write it in a CF formula ?
<CFSET tax = ? * ?> etc. <CFSET sales = ??>