How do I add a percentage of a value to itself using LINQ? For example, say the price is £10. Adding 6% of that price to itself gives £10.60. My code would look something like this, although I want to perform this calculation within an insert statement.
aPrice + aPercentage = bPrice
the usual way of doing this is to do
If you have a value as a percentage between 0 and 100 then do the following:
NOTE: always use Decimal not Double when working with Prices.