From 00c3b231f6806fa889c7ba4be85bc7c3418d993f Mon Sep 17 00:00:00 2001 From: Jose Rodriguez Date: Sun, 23 Feb 2025 13:53:10 +0100 Subject: [PATCH] doc: add PI documentation --- docs/pi.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 docs/pi.md diff --git a/docs/pi.md b/docs/pi.md new file mode 100644 index 000000000..bb92dfc19 --- /dev/null +++ b/docs/pi.md @@ -0,0 +1,31 @@ +# PI + +## Syntax + +``` +PI +``` + + +## Description + +PI is a math _constant_, roughly equivalent to **3.141592654...**, +and it is of type `Float` + +## Example + +``` +REM Prints PI Value +PRINT "PI = "; PI +``` +Which will print a _rounded value_ of `3.1415927` + + +## Remarks + +* This constant is 100% Sinclair BASIC Compatible. + +## See also +* [COS](cos.md) and [ACS](acs.md) +* [SIN](sin.md) and [ASN](asn.md) +* [TAN](tan.md) and [ATN](atn.md)