Advertisement
buzzonit

wellington C#

Jul 19th, 2016
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. https://snag.gy/Nlns1V.jpg
  2.  
  3. https://snag.gy/FreWQd.jpg
  4.  
  5.  
  6. http://www.macoratti.net/14/02/c_emi1.htm
  7.  
  8.  
  9. /*
  10. double valor = Convert.ToDouble(maskedTextBox1valor.Text);
  11. double taxa = Convert.ToDouble(maskedTextBox2taxa.Text)/100;
  12. double parcela = Convert.ToDouble(maskedTextBox3parcelas.Text);
  13.  
  14.  
  15. maskedTextBox4montante.Text = Convert.ToString(valor * Math.Pow(1 + taxa,parcela);
  16. double montante = Convert.ToDouble(maskedTextBox4montante.Text);
  17.  
  18.  
  19. maskedTextBox3parcelas.Text = Convert.ToString(montante/parcela);
  20. double Vparcela = Convert.ToDouble(maskedTextBox3parcelas.Text);
  21. */
  22.  
  23. double valor = Convert.ToDouble(maskedTextBox1valor.Text);
  24. double taxa = Convert.ToDouble(maskedTextBox2taxa.Text)/100;
  25. double parcela = Convert.ToDouble(maskedTextBox3parcelas.Text);
  26.  
  27.  
  28. maskedTextBox4montante.Text valor * (Math.Pow(1 + taxa,parcela);
  29. double valor parcela = Convert.ToDouble(montante);
  30. double montante = montante / parcelas;
  31. maskedTextBox3parcelas.Text = String.format("{0:00.00}",montante);
  32.  
  33.  
  34.  
  35. valor parcela = montante / parcelas;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement