![]() |
Problem mit einer Funktion!
Hi!
Wie kann ich diese Funktion aufrufen:
Delphi-Quellcode:
Ich hab irgendwie schon alles versucht aber der Compiler meldet trotzdem Fehler (kann auch an mir liegen :lol: )! Wie kann ich das standardmäßig machen?
function Pileibniz(Summandenzahl : integer):extended;
var i, summand : integer; begin summand := 1; result := 0; for i:=1 to summandenzahl do begin result := result + (1/summand); if (1-summand) < 1 then summand := -1 * (summand+2) else summand := -1 * (summand-2); end; result := result * 4; end; |
Re: Dumme Frage zu einer Funktion!
Hallo, ändere bitte deinen Titel, damit man weiß, um was es geht.
Delphi-Quellcode:
//Aufruf
Extended_Zahl := Pileibniz (Integer_Zahl); Nachtrag: Es heißt "standard" |
Alle Zeitangaben in WEZ +1. Es ist jetzt 14:01 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz