x.xxxx is not a valid floating point. Converting between languages/locals

前端 未结 4 1768
刺人心
刺人心 2021-01-02 08:20

I have a spanish user who is getting an invalid floating point error when doing this

var
  S : String;
  R : Real;
begin
  S := \'3.12345\';
  R         


        
4条回答
  •  情歌与酒
    2021-01-02 08:41

    Use the second overload of StrToFloat with a TFormatSettings that has DecimalSeparator set to ..

提交回复
热议问题