Difference between revisions of "PI"
From Mesham
Jump to navigationJump to searchm |
m (5 revisions imported) |
||
| (One intermediate revision by the same user not shown) | |||
| 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'' | ||
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