How can I deduct a certain percentage from the outputted number and display a newly calculated number?
This is what I mean:
Original number is outputted by
<?= $number['originalnumber'] ?>
which on a user's display shows up as, let's say, number 199.
I want to deduct 3% from number 199, which results in 193.03 and display this new value instead of 199.
Basically calculating on the fly and outputting a new value, so the user never sees number 199 but only a new number 193.03
Mathematic formula is 199 - 199 * .03 = 193.03
So it would be something like this probably
<?= $number['originalnumber'] ?> - ( <?= $number['originalnumber'] ?> * 0.3 ) = display new value on user's screen.
I'm not exactly a programmer and have no idea how to do it, so the good line of code would be appreciated.