You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The last digits of ConvertDoubleToString do not fit. Perhaps something is rounded wrong?
This round trip test
uses PasDblStrUtils;
var j: integer;
s: single absolute j;
d, d1: double;
i: integer;
stri: string;
begin
for i := low(i) to high(i) do begin
j := i;
d := s;
stri := ConvertDoubleToString(d);
d1 := ConvertStringToDouble(stri);
if d <> d1 then writeln('a: ', d, ' ', stri, ' ', d1);
end;
The last digits of ConvertDoubleToString do not fit. Perhaps something is rounded wrong?
This round trip test
finds many broken numbers:
The text was updated successfully, but these errors were encountered: