Method ToHexString(const AMinDigits: Integer) returns fixed number of digits instead of minimum
Original Reporter info from Mantis: josiasmat
-
Reporter name:
Original Reporter info from Mantis: josiasmat
- Reporter name:
Description:
The method ToHexString(const AMinDigits: Integer) always returns a string with a fixed number of hexadecimal digits, instead of a minimum number of digits.
Steps to reproduce:
Example:
procedure Test()
var i: Integer;
S: String;
begin
i := 10;
S := i.ToHexString(1); // returns 'A'
i := 20;
S := i.ToHexString(1); // returns '4', should return '14'
end;
Mantis conversion info:
- Mantis ID: 35015
- OS: Windows
- OS Build: 10
- Build: Lazarus 2.0
- Platform: x86-64
- Version: 3.0.4
- Fixed in version: 3.3.1
- Fixed in revision: 41268 (#93fcce4b)