From 2fd3a7b32e554d021915ebbd3b6f00dd2b80ff16 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Sun, 1 Nov 2020 10:34:56 -0500 Subject: Recompile docs with new (more precise) dzaima/BQN number formatting --- docs/doc/syntax.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/doc/syntax.html') diff --git a/docs/doc/syntax.html b/docs/doc/syntax.html index 4f8eb345..88e006fc 100644 --- a/docs/doc/syntax.html +++ b/docs/doc/syntax.html @@ -108,7 +108,7 @@

BQN has single-token notation for numbers, strings, and characters.

Numbers allow the typical decimal notation with ¯ for the negative sign (because - is a function) and e for scientific notation (or E, as numeric notation is case-insensitive). and π may be used as special numeric values. If complex numbers are supported, then they can be written with the components separated by i. However, no BQN to date supports complex numbers.

↗️
     ¯π  0.5  5e¯1  1.5E3      # A list of numbers
-⟨ ¯3.14159265358979 0.5 0.5 1500 ∞ ⟩
+⟨ ¯3.141592653589793 0.5 0.5 1500 ∞ ⟩
 

Strings are written with double quotes "", and characters with single quotes '' with a single character in between. A double quote within a string can be escaped by writing it twice; if two string literals are next to each other, they must be separated by a space. In contrast, character literals do not use escapes, as the length is already known.

↗️
    ¨  "str"  "s't""r"  'c'  '''  '"'    # "" is an escape
-- 
cgit v1.2.3