I have a Delphi 9.0 (2005) application that calls the following simple code (sanitized for ease of explanation)...
Running on XP SP3 all is well as you would expect but on a client's Vista-64 machine, it is raising an exception: '9.04' is not a valid floating point value
Are there known compatability issues with this function (and any others whilst we're at it) and any documented alternatives for this Delphi version?
Many thanks.
Code:
procedure MyProc;
var
myNumber: Extended; // tried Real here also
myString: String;
begin
myString := '9.04';
myNumber := strToFloat(myString);
showMessage(floatToStr(myNumber));
end;
Running on XP SP3 all is well as you would expect but on a client's Vista-64 machine, it is raising an exception: '9.04' is not a valid floating point value
Are there known compatability issues with this function (and any others whilst we're at it) and any documented alternatives for this Delphi version?
Many thanks.