Quote:
Originally Posted by om_prakash
I am still not clear on what output you want...
Please tell me what should be the total value for below case:
Discount: 5
price: 200
Amount: 20
|
The total value should be 2000.
my calculate is wrong since the beginning:
Code:
sinTotal = (sinPrice * intNumber) * sinDiscount
but if use your formula,it still not correct:
Code:
sinTotal = (sinPrice - sinDiscount) * intNumber
for example:
Code:
sinPrice = 100 200 300
sinDiscount = 9 5 8.5
intNumber = 10 10 10
the correct result is sinTotal = 900 1000 255
use your formula the sinTotal = 910 1950 2915
only price can be discounted,i can't find out how to coding the total formula after discount in
VB.i only need a formula to calculate the total value after discount,and the discount is a textbox wait for user to input numbers,it changes.