Browse Source

* Fix int not working on IE

michael 6 years ago
parent
commit
0f607847a6
1 changed files with 2 additions and 3 deletions
  1. 2 3
      packages/rtl/system.pas

+ 2 - 3
packages/rtl/system.pas

@@ -455,10 +455,9 @@ end;
 
 function Int(const A: Double): double;
 
-  function FTrunc(const A: Double): double; overload; external name 'Math.trunc';
-
 begin
-  Result:=FTrunc(A);
+  // trunc contains fix for missing Math.trunc in IE
+  Result:=Trunc(A);
 end;
 
 function Number(S: String): Double; external name 'Number';