Autor Beitrag
prime60
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26



BeitragVerfasst: Mo 30.07.07 20:57 
wie kann ich solche zahlen als normale komma zahlen umwandeln?
-> 2,459680572025E56

danke schonmal..
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Di 31.07.07 04:53 
Wie meinst du das? Willst du die vielen Nullen sehen oder das aus einem String in eine Zahl in Delphi umwandeln?
1. Nullen sehen:
Nimm die Zahl hinter dem E (Pos und Copy) und fütter die (minus der vorhandenen Nachkommastellen) an DupeString. Dann noch Komma weg und fertig. (Für sehr viele Nullen gibts glaube ich keine fertige Lösung.)
2. In eine Zahl umwandeln:
Ganz normal mit StrToFloat, das erkennt auch solche Zahlen normalerweise.