diff --git a/filtre.py b/filtre.py index 19b8b3a..37d6917 100644 --- a/filtre.py +++ b/filtre.py @@ -22,13 +22,13 @@ def calc(self): rn=calcul_Rn(r,impedance) textdecompletion='' for i in range (ordre//2): - textdecompletion= textdecompletion + "L" + str(i) + "= " + str(lk[i]) + " \n" + textdecompletion= textdecompletion + "L" +str(i) + "= " + str("%.3e"%lk[i]) + " \n" self.resultatlk_textedit.setText(textdecompletion) textdecompletion='' for i in range (ordre//2): - textdecompletion= textdecompletion + "C" + str(i) + "= " + str(ck[i]) + " \n" + textdecompletion= textdecompletion + "C" + str(i) + "= " + str("%.3e"%ck[i]) + " \n" self.resultatck_textedit.setText(textdecompletion) - self.resultatrn_lineedit.setText(str(rn)) + self.resultatrn_lineedit.setText(str("%.3e"%rn)) #self.resultat_lineedit.setText('lk ='+str(lk)+'\nck='+str(ck)+'\nrn ='+str(rn))