Difference between revisions of "PI"

From Mesham
Jump to navigationJump to search
m
m
Line 9: Line 9:
 
== Example ==
 
== Example ==
  
 +
#include <maths>
 
  var a:=pi();
 
  var a:=pi();
  
 
[[Category:Function Library]]
 
[[Category:Function Library]]
 
[[Category:Maths Functions]]
 
[[Category:Maths Functions]]

Revision as of 12:55, 13 January 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>
var a:=pi();