24-02-2018, 02:42 PM
(23-02-2018, 12:20 AM)Agmcz كتب : المصدر
مع بعض اللمسات
PHP كود :function RoundCorrect(R: Real): LongInt;
var
s: Real;
begin
Result:= Trunc(R); // extract the integer part
if Frac(R) > 0 then
Result := Result + 1; // ...add 1
end;
شكراا لك

