fixed the "ugly" Round6 function
This commit is contained in:
parent
e6b4fb16d9
commit
c38e73d2c2
@ -144,7 +144,10 @@ end;
|
||||
function Round6(x: double): double;
|
||||
// Really ugly, but it works
|
||||
begin
|
||||
Result := StrToFloat(Format('%.6f', [x]));
|
||||
// --Z-- this is ridiculous:
|
||||
// Result := StrToFloat(Format('%.6f', [x]));
|
||||
// and yes, this is REALLY ugly :-\
|
||||
Result := RoundTo(x, -6);
|
||||
end;
|
||||
|
||||
function solve3(x1, x2, x1h, y1, y2, y1h, z1, z2, z1h: double;
|
||||
|
Loading…
Reference in New Issue
Block a user