Einzelnen Beitrag anzeigen

Gehstock

Registriert seit: 28. Jan 2006
Ort: Görlitz / Sachsen
489 Beiträge
 
Delphi 2007 Professional
 
#13

Re: Wie kann ich das rechnen

  Alt 19. Aug 2006, 10:27
ich werds nie raffen

Delphi-Quellcode:
widerstand : string;
tolerance: extended;
prozent: extended;
tolerance := floattostr( (strtofloat(widerstand)/100)*(prozent)); und hier die Formel mit dem Problem

Delphi-Quellcode:
pnl_worstcasemin.caption := (floattostr((strtofloat(widerstand)/
1-(tolerance))+' Ohm'));
die klappt einwandfrei

Delphi-Quellcode:
pnl_result.caption := (floattostr((strtofloat(widerstand)/
1))+' Ohm');
Marcel
  Mit Zitat antworten Zitat