Autor Beitrag
Smartie
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 205



BeitragVerfasst: Mi 04.05.05 10:36 
Servus!

ich hab da ein kleines Problem:

Ich lese einen Gleitkommawert aus einem String raus, und möchte diesen nun abspeicehrn.

Nur mekert er da.

Es sieht ungefähr so aus:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
[...]

var a: String;
    b: Double;
begin
  a := '-876.324';
  b := StrtoFloat(a);

end;

//Fehlermeldung: '-876.324' ist kein gültiger Gleitkommawert


Weiß jemand, woran das liegt und wie ich dieses Problemchen lösen kann?

Herzlichen Dank

Smartie
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6393
Erhaltene Danke: 147

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 04.05.05 10:38 
Ersetze mal "." durch ",".
Falls es ein tausender-trenner ist, lass es ganz weg.
Smartie Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 205



BeitragVerfasst: Mi 04.05.05 10:47 
Ok, dann ändere ich mal meine Ländereinstellung. Dankeschön!

das ganze sollja später mit . als Kommazeichen laufen, also wird das das beste sein.

Lieben Gruß

Smartie