"evaluate/modify" and "watches" windows: please print floats with appropriate precision
- Lazarus/FPC Version: <Lazarus 3.0 (rev f771d54e) FPC 3.3.1 x86_64-win64-win32/win64>
- Operating System:
- CPU / Bitness: <64>
What happens
The evaluate/modify
and watches
windows print floating point numbers with a reduced precision. This looks more pretty, of course, but doesn't allow for identifying a number (especially at double
precision) or to check whether two floats are equal or not.
What did you expect
These dialogs should use 9 digits for printing single
precision floats, and 17 digits for printing double
precision floats (and I think 20 or 21 digits for extended
) so that the user is able to uniquely identify the floating point number and to distinguish floats.
Both dialogs are intended for debugging purposes and finding errors in code, so they shouldn't introduce any new ambiguities even if the decimal representation looks less pretty than currently.
Steps to reproduce
program Project1;
var f1, f2: single;
begin
f1 := 1023.9932861;
f2 := 1023.99334716;
end.```