瀏覽代碼

* Add constants cPI and friends, for delphi compatibility

Michaël Van Canneyt 1 年之前
父節點
當前提交
d6cf3c98d0
共有 1 個文件被更改,包括 7 次插入0 次删除
  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}