aboutsummaryrefslogtreecommitdiff
path: root/docs/help/minus.html
blob: c235aa75df91892fcdcd2e630ecd6b73086985cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<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><a class="fulldoc" href="../doc/syntax.html#constants">→full documentation</a></p>
<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>