Skip to content

Commit 989102d

Browse files
authored
Merge pull request #959 from boriel-basic/docs
doc: add PI documentation
2 parents 9d6257b + 00c3b23 commit 989102d

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

docs/pi.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# PI
2+
3+
## Syntax
4+
5+
```
6+
PI
7+
```
8+
9+
10+
## Description
11+
12+
PI is a math _constant_, roughly equivalent to **3.141592654...**,
13+
and it is of type `Float`
14+
15+
## Example
16+
17+
```
18+
REM Prints PI Value
19+
PRINT "PI = "; PI
20+
```
21+
Which will print a _rounded value_ of `3.1415927`
22+
23+
24+
## Remarks
25+
26+
* This constant is 100% Sinclair BASIC Compatible.
27+
28+
## See also
29+
* [COS](cos.md) and [ACS](acs.md)
30+
* [SIN](sin.md) and [ASN](asn.md)
31+
* [TAN](tan.md) and [ATN](atn.md)

0 commit comments

Comments
 (0)