Difference between revisions of "PI"

From Mesham
Jump to navigationJump to search
m
m (5 revisions imported)
 
(3 intermediate revisions by the same user not shown)
Line 5: Line 5:
  
 
* '''Pass:''' None
 
* '''Pass:''' None
* '''Returns:''' A double representing PI
+
* '''Returns:''' A [[Double]] representing PI
  
 
== Example ==
 
== Example ==
  
  var a:=pi();
+
  #include <maths>
 +
 +
function void main() {
 +
    var a:=pi();
 +
};
 +
 
 +
''Since: Version 0.41b''
  
 
[[Category:Function Library]]
 
[[Category:Function Library]]
 
[[Category:Maths Functions]]
 
[[Category:Maths Functions]]

Latest revision as of 15:44, 15 April 2019

Overview

This pi() function will return PI. Note: The number of significant figures of PI is implementation specific.

  • Pass: None
  • Returns: A Double representing PI

Example

#include <maths>

function void main() {
   var a:=pi();
};

Since: Version 0.41b