Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit16ce677

Browse files
committed
StrToFloat function local system problem(floating point separator) fixed it.
1 parent6f983bd commit16ce677

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎PythonForDelphi/Components/Sources/Core/PythonEngine.pas‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9685,6 +9685,8 @@ function IsPythonVersionRegistered(PythonVersion : string;
96859685
var
96869686
key: string;
96879687
PythonVersionFloat: Single;
9688+
errorPos: Integer;
9689+
96889690
// 3way operator function.
96899691
functionIfThen(condition: Boolean; ifT, ifF: Cardinal): Cardinal; overload;
96909692
begin
@@ -9707,7 +9709,8 @@ function IsPythonVersionRegistered(PythonVersion : string;
97079709
Result := False;
97089710
InstallPath :='';
97099711
AllUserInstall := False;
9710-
PythonVersionFloat := StrToFloat(PythonVersion);
9712+
//PythonVersionFloat := StrToFloat(PythonVersion);
9713+
Val(PythonVersion, PythonVersionFloat, errorPos);
97119714
try
97129715

97139716
// 3.5

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp