Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi Umwandlung Integer zu Real (https://www.delphipraxis.net/104657-umwandlung-integer-zu-real.html)

HTML04 8. Dez 2007 12:41


Umwandlung Integer zu Real
 
Wie formatiert man Real in Integer :gruebel:

Die Muhkuh 8. Dez 2007 12:42

Re: Umwandlung Integer zu Real
 
Delphi-Quellcode:
Integer = Round(Real);

Nuclear-Ping 8. Dez 2007 12:43

Re: Umwandlung Integer zu Real
 
Trunc, Round, FormatFloat (Quark, da kommt ja 'n String raus), ... :mrgreen:

Aurelius 8. Dez 2007 12:43

Re: Umwandlung Integer zu Real
 
Float zu integer mit dem Round-Befehl

Integer in real brauch man doch eigentlich nicht umformatieren (integer ist in real ja schon enthalten)

Muetze1 8. Dez 2007 15:21

Re: Umwandlung Integer zu Real
 
Der Thread Titel meint fragt nach dem umgekehrten Weg als der Beitrag.

Die Muhkuh 8. Dez 2007 15:33

Re: Umwandlung Integer zu Real
 
Zitat:

Zitat von Muetze1
Der Thread Titel meint fragt nach dem umgekehrten Weg als der Beitrag.

Da ist was dran. Dann ist es 0815 sagte:

Delphi-Quellcode:
Real = Integer;

HTML04 8. Dez 2007 16:45

Re: Umwandlung Integer zu Real
 
Sorry, habe gemeint wie es im Beitrag steht. muss wohl die Überschrift falsch formuliert haben :?

Aber Danke für die Antworten :thumb:


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:23 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz