Browse Source

* Add constants cPI and friends, for delphi compatibility

Michaël Van Canneyt 1 năm trước cách đây
mục cha
commit
d6cf3c98d0
1 tập tin đã thay đổi với 7 bổ sung0 xóa
  1. 7 0
      rtl/objpas/types.pp

+ 7 - 0
rtl/objpas/types.pp

@@ -531,6 +531,13 @@ type
   end;
 {$endif}
 
+Const
+  cPI: Single = 3.141592654;
+  cPIdiv180: Single = 0.017453292;
+  cPIdiv2: Single = 1.570796326;
+  cPIdiv4: Single = 0.785398163;
+
+
 implementation
 
 {$IFDEF FPC_DOTTEDUNITS}