Forum: Object-Pascal / Delphi-Language
Delphi
by WojTec,
5. Feb 2015
Not better than, but better with. How to do with SameValue?
Forum: Object-Pascal / Delphi-Language
Delphi
by WojTec,
5. Feb 2015
How to change code if parameter will ba array of const?
Can do it better? With SameValue? How?
Forum: Object-Pascal / Delphi-Language
Delphi
by WojTec,
5. Feb 2015
I have function:
function SimilarValue(const AValue: Float32; AValues: array of Float32; out AResult: Float32): Int32;
var
I: Int32;
Distance: Float80;
SmallestDistance: Float80;
begin
Result := -1;
AResult := 0;