Difference between revisions of "PI"

From Mesham
Jump to navigationJump to search
m
Line 10: Line 10:
  
 
  #include <maths>
 
  #include <maths>
  var a:=pi();
+
   
 +
function void main() {
 +
    var a:=pi();
 +
};
  
 
''Since: Version 0.41b''
 
''Since: Version 0.41b''

Revision as of 14:36, 15 April 2013

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