![]() |
"floor" - Funktion in Delphi?
Tach!
Was wäre in Delphi analog zu der in c++ vorhandenen Funktion "floor"? Danke :lol: |
Re: "floor" - Funktion in Delphi?
Schon mal in der Hilfe unter dem gleichnamigen Stichwort gekuckt? Eventuell kann man dir auch weiterhelfen, wenn du uns sagst, was die Funktion in C++ macht. C++ ist nicht meine stärke und wohl auch nicht der meisten hier. :roll:
|
Re: "floor" - Funktion in Delphi?
Zitat:
Komm, Du weißt es doch! Klar hab ich nachgesehen. "The floor function returns a floating-point value representing the largest integer that is less than or equal to x. There is no error return." |
Re: "floor" - Funktion in Delphi?
Ich weiß was floor in Delphi macht, was aber noch lange nicht heißt, dass es auch das gleiche in C++ macht. So C++ fest bin ich nicht als dass ich alle Funktionen aus den standard Bibliotheken kennen würde.
Also, was ist nun? |
Re: "floor" - Funktion in Delphi?
Zitat:
Nochmal: in C++ macht floor das hier: "The floor function returns a floating-point value representing the largest integer that is less than or equal to x. There is no error return." Also, gibt einen Single-Wert , der kleiner oder gleich Argument ist. Und in meiner Delphi-Hilfe steht nirgendwo was über " floor " |
Re: "floor" - Funktion in Delphi?
Zitat:
Edit: Ich musste Smileys deaktivieren, da 0) umgewandelt wurde... |
Re: "floor" - Funktion in Delphi?
Zitat:
|
Re: "floor" - Funktion in Delphi?
Sorry Luckie, ich konnt mich net beherrschen und hab gepostet... :roll:
|
Re: "floor" - Funktion in Delphi?
[quote="Matze"][quote="OH"]Floor (Funktion)
Die Funktion rundet Variablen ab. Unit Math Kategorie Arithmetik Delphi-Syntax:
Delphi-Quellcode:
C++ Syntax:
function Floor(const X: Extended): Integer;
Code:
Beschreibung
extern PACKAGE int __fastcall Floor(const Extended X);
Floor rundet die mit X angegebene Variable folgendermaßen ab: Floor(-2,8) = -3 Floor(2.8) = 2 Floor(-1.0) = -1 [ Genau det Gleiche wie in c++. Danke für Deine Hilfe. Zum Glück gibt es auch vernünftgige Antworten hier, nicht nur irgendwelche spiessige Belehrungen die nüscht nutzen. :cheers: |
Re: "floor" - Funktion in Delphi?
Bitte.
Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 02:47 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 by Thomas Breitkreuz