Einzelnen Beitrag anzeigen

Benutzerbild von 3_of_8
3_of_8

Registriert seit: 22. Mär 2005
Ort: Dingolfing
4.129 Beiträge
 
Turbo Delphi für Win32
 
#9

Re: Wissenschaftliche Notation in "normale" Zahl u

  Alt 11. Okt 2006, 14:27
Welchen Typ hat fDummy? Welche Delphi-Version hast du? Wie gibst du das Ding aus?

Folgender Code funktioniert bei mir (D7 Personal) prima:
Delphi-Quellcode:
{$O-} //Damit der Compiler fDummy nicht wegoptimiert

procedure TForm1.FormCreate(Sender: TObject);
var fDummy: Real;
begin
fDummy := StrToFloat('1,74E+12');
end;
Wenn ich auf das end; nen Haltepunkt setze und den Evaluator anschmeiße, kriege ich den korrekten Wert.
Manuel Eberl
„The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.“
- Terry Pratchett
  Mit Zitat antworten Zitat