Differences

This shows you the differences between two versions of the page.

Link to this comparison view

howto:procentage [2016/04/01 07:15] (current)
yehuda created
Line 1: Line 1:
 +<code python>
 +pay=160
 +vatProcentce=0.18 # 18%
 +vatCash= pay * vatProcentce
 +totalToPay = pay + vatCash ​
 +# OR
 +totalToPay = pay * (1 + vatProcentce)
  
 +#Reverse Procentage
 +cleanedPay = totalToPay / (1+vatProcentce)
 +</​code>​
howto/procentage.txt ยท Last modified: 2016/04/01 07:15 by yehuda
Back to top
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0