Convert Delphi to FloatToStr EInvalidOp

once again the conversion problem in Delphi. I went through some other topics that relate to a similar problem, but nothing works. What I want to do is simply convert the computetd solution (in extended format) to String, and then display it in TMemo. I tried:

FloatToStrF( value, ffExponent, 15, 2 );

and I also tried installing them:

procedure TfrmMain.FormCreate(Sender: TObject);
begin
DecimalSeparator := '.';
Application.UpdateFormatSettings := false;
end;

and then use the simplest one:

FloatToStr  

but i still can't get it to work. I don't know why it works here: http://delphi.about.com/library/rtl/blrtlFloatToStrF.htm

and not part of my program. I know that there is a second version of FloatToStr with a second parameter, but I have not used it before, and I'm rather not a Delphi expert, so can anyone give me an example of code for the second version of FloatToStr?

enter image description here

enter image description here

+3
1

, , , , FloatToStrF.

, , , x0, .

+8

All Articles