aboutsummaryrefslogtreecommitdiff
path: root/docs/help/minus.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/help/minus.html')
-rw-r--r--docs/help/minus.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/help/minus.html b/docs/help/minus.html
new file mode 100644
index 00000000..965be169
--- /dev/null
+++ b/docs/help/minus.html
@@ -0,0 +1,16 @@
+<head>
+ <link href="../favicon.ico" rel="shortcut icon" type="image/x-icon"/>
+ <link href="../style.css" rel="stylesheet"/>
+ <title>BQN: Macron (`¯`)</title>
+</head>
+<div class="nav">(<a href="https://github.com/mlochbaum/BQN">github</a>) / <a href="../index.html">BQN</a> / <a href="index.html">help</a></div>
+<h1 id="macron-"><a class="header" href="#macron-">Macron (<code><span class='Number'>¯</span></code>)</a></h1>
+<h2 id="-minus"><a class="header" href="#-minus"><code><span class='Number'>¯</span></code>: Minus</a></h2>
+<p>Prefix before numbers to indicate that they are negative.</p>
+<p>Note that this is not the same as <code><span class='Function'>-</span></code>, since it is part of the number, rather than a primitive that negates its value.</p>
+<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=LTHigL8y4oC/MwoKwq8x4oC/MuKAvzM=">↗️</a><pre> <span class='Function'>-</span><span class='Number'>1</span><span class='Ligature'>‿</span><span class='Number'>2</span><span class='Ligature'>‿</span><span class='Number'>3</span>
+⟨ ¯1 ¯2 ¯3 ⟩
+
+ <span class='Number'>¯1</span><span class='Ligature'>‿</span><span class='Number'>2</span><span class='Ligature'>‿</span><span class='Number'>3</span>
+⟨ ¯1 2 3 ⟩
+</pre>