소스 검색

Core: bug when calculating account balance in decimal

Herman Schoenfeld 7 년 전
부모
커밋
092d93f528
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/core/UAccounts.pas

+ 1 - 1
src/core/UAccounts.pas

@@ -1266,7 +1266,7 @@ end;
 
 class function TAccountComp.FormatMoneyDecimal(Money : Int64) : Single;
 begin
-  RoundTo( Money / 10000, -4);
+  Result := RoundTo( Money / 10000.0, -4);
 end;
 
 class function TAccountComp.GetECInfoTxt(const EC_OpenSSL_NID: Word): AnsiString;