Last active
January 4, 2016 03:39
-
-
Save deyvin/8563699 to your computer and use it in GitHub Desktop.
Como chegar a um valor de acréscimo aplicando um percentual de desconto para chegar ao valor fixo.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$valor_desejado = 500; | |
$percentual = 20; | |
echo ($valor_desejado * 100) / (100 − $percentual); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment