Autor Beitrag
Infoteacher
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: Mi 29.09.04 14:14 
Hallo

Bitte helft mir!
Ich würde gerne wissen welchen Zweck und Verwendung FloatToString hat! :?:
Und eigentlich alles was ihr dazu wisst!

Schon mal vielen Dank!
Udontknow
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2596

Win7
D2006 WIN32, .NET (C#)
BeitragVerfasst: Mi 29.09.04 14:17 
Hallo!

Was genau willst du denn über FloatToStr wissen, das in der Delphilfe nicht steht?

Cu,
Udontknow
Infoteacher Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: Mi 29.09.04 14:22 
ich hab KEINE Ahnung von diesem Befehl! Mich würde nur der verwendungszweck interessieren oder ähnliches!

z.B. • ->stringToFloat: wandelt eine Zeichenfolge in ein Zahl um. Ist die Zeichenfolge keine Zahl, wird 0 ausgegeben

also für einen anfänger
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: Mi 29.09.04 14:28 
Naja, und FloatToStr wandelt eine (Fließkomma)Zahl in eine Zeichenkette um ... :?

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 29.09.04 14:28 
FloatToString machts umgekehrt :wink:

Ein Beispiel:
Wenn du ein Zahl (Float) in ein TEdit schreiben willst, dann sollte es besser ein String sein.
Udontknow
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2596

Win7
D2006 WIN32, .NET (C#)
BeitragVerfasst: Mi 29.09.04 14:29 
Was ich mit meinem Post sagen wollte: Schau in die Delphi-Hilfe! :wink:
Ramon
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 107

WIN7
D6 Prof, D7 Prof, D 2009
BeitragVerfasst: Mi 29.09.04 14:29 
Infoteacher hat folgendes geschrieben:

z.B. • ->stringToFloat: wandelt eine Zeichenfolge in ein Zahl um.


FloatToStr: Wandelt eine Dezimalzahl in eine Zeichenfolge um :roll:

Darum gehts? Oder hab ich was verpasst?
Infoteacher Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: Mi 29.09.04 14:30 
Top! hört sich toll an!

Ihr müsst auch denken, was ich da für ein Mist frage! Sind ja echt grundlagen ...
Infoteacher Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: Mi 29.09.04 14:32 
Udontknow hat folgendes geschrieben:
Was ich mit meinem Post sagen wollte: Schau in die Delphi-Hilfe! :wink:


:lol: Hab ich mir angesehen! Ist echt alles *mist*e!
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: Mi 29.09.04 14:41 
Ich hab grad nur ne englische Hilf am Start, aber da steht folgender sehr verständlicher Text:
Die Delphi-Hilfe hat folgendes geschrieben:
FloatToStr converts the floating-point value given by Value to its string representation. The conversion uses general number format with 15 significant digits.

For greater control over the formatting of the string, use the FloatToStrF function.

Wo ist da das Problem?

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!
Infoteacher Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: Mi 29.09.04 14:42 
AAAAHHHHHHHHHHHHHHHHHHHHHHHHHH! VERDAMMTE Dreckskacke! ich fass es nicht! *mist*e und ne Gurke dazu! Man ich bin 65 Jahre alt! Nehme ***! Das ist doch mist! Ich flippe aus! :twisted: :shock: Man da frag ich lieber meinen Heimleiter!

DANKE für die tollen Antworten an einen alten Sack! :twisted:
:D
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: Mi 29.09.04 14:43 
Mach mal halblang ... :?

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!
Infoteacher Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: Mi 29.09.04 14:44 
.Chef hat folgendes geschrieben:
Ich hab grad nur ne englische Hilf am Start, aber da steht folgender sehr verständlicher Text:
Die Delphi-Hilfe hat folgendes geschrieben:
FloatToStr converts the floating-point value given by Value to its string representation. The conversion uses general number format with 15 significant digits.

For greater control over the formatting of the string, use the FloatToStrF function.

Wo ist da das Problem?


Das ist Englisch! Kann ich nicht! Hatte nur Russisch!
Ramon
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 107

WIN7
D6 Prof, D7 Prof, D 2009
BeitragVerfasst: Mi 29.09.04 14:46 
Zitat:
FloatToStr konvertiert die mit Value angegebene Gleitkommazahl in die entsprechende String-Darstellung. Bei der Operation wird das allgemeine Zahlenformat mit 15 signifikanten Stellen verwendet.

Wenn Sie die Formatierung des Strings genauer steuern wollen, verwenden Sie die Funktion FloatToStrF.


Daran soll es doch nicht scheitern, oder?
Infoteacher Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: Mi 29.09.04 14:48 
Oh Danke! Sag mir bloß noch bitte was die Value ist! Dann bin ich froh.
pascal4free
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 47

Win2000
D8SSL
BeitragVerfasst: Mi 29.09.04 14:50 
www.google.de/language_tools?hl=de

wenn du da value eingibst wirste erfahren was es heisst :shock:

es gibt echt komische leute auf diesem planeten
Infoteacher Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: Mi 29.09.04 14:52 
pascal4free hat folgendes geschrieben:


es gibt echt komische leute auf diesem planeten

Boah! DU SPINNER!
Danke an alle! :lol:
Ramon
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 107

WIN7
D6 Prof, D7 Prof, D 2009
BeitragVerfasst: Mi 29.09.04 14:53 
Value ist die Zahl, die du der Funktion übergibst.

FloatToStr(Value: Extended): String;
Infoteacher Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: Mi 29.09.04 15:01 
Thanks guys! Its terrificially perfect, that you helped me so much! Therefore a great thank you.
Udontknow
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2596

Win7
D2006 WIN32, .NET (C#)
BeitragVerfasst: Mi 29.09.04 15:48 
Infoteacher hat folgendes geschrieben:
Udontknow hat folgendes geschrieben:
Was ich mit meinem Post sagen wollte: Schau in die Delphi-Hilfe! :wink:


:lol: Hab ich mir angesehen! Ist echt alles sch****!


Ist die Hilfe bei deiner Delphi-Version nicht in deutsch? Wieso komme ich mir irgendwie veräppelt vor? :? Ich hoffe, du hast nicht vor, das jetzt bei jedem in Delphi existierenden Befehl durchzuziehen, denn das, soviel ist sicher, wird hier so nicht weitergehen.