Browse Source

Core: bug when calculating account balance in decimal

Herman Schoenfeld 7 years ago
parent
commit
092d93f528
1 changed files with 1 additions and 1 deletions
  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;
 class function TAccountComp.FormatMoneyDecimal(Money : Int64) : Single;
 begin
 begin
-  RoundTo( Money / 10000, -4);
+  Result := RoundTo( Money / 10000.0, -4);
 end;
 end;
 
 
 class function TAccountComp.GetECInfoTxt(const EC_OpenSSL_NID: Word): AnsiString;
 class function TAccountComp.GetECInfoTxt(const EC_OpenSSL_NID: Word): AnsiString;