Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
Delphi 10.2 Tokyo Professional
|
AW: FloatToStr ohne Nullen nach dem Komma
22. Jun 2023, 11:03
Du musst den 2. Parameter von FloatToStr verwenden: AFormatSettings:
Delphi-Quellcode:
var fs: TFormatSettings;
begin
fs := TFormatSettings.Create('en-US');
Caption := FloatToStr(10.234, fs);
end;
Michael "Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
Geändert von Neutral General (22. Jun 2023 um 11:05 Uhr)
|