I'm encountering a rather perplexing issue with Angular2/Typescript.
My goal is to compute the final price based on a specified discount value. Here's the formula I am using:
row.priceList = row.pricePurchase + (row.pricePurchase * row.markUp / 100);
All the variables are declared as numbers.
When I attempt to execute the formula and display the values, inputting pricePurchase as 1 and markUp as 0, the outcome is 10?
How can this be happening and what steps should I take to correct it?
Appreciate your assistance.