浏览代码

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;