Skip to content

Commit

Permalink
🚀 Deploy docs
Browse files Browse the repository at this point in the history
  • Loading branch information
SpyglassCrafter committed May 19, 2024
1 parent 3a144ab commit eb5bdb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/js/search-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
},"17": {
"doc": "Mcdoc",
"title": "Typed Number",
"content": "SYNTAX (TOKEN) . TYPED_NUMBER FLOAT [b B d D f F l L s S]? . A typed number is similar to a number used in SNBTs syntax-wise. It’s a normal number followed by a suffix indicating its type: . Table 2. Suffix table | Suffix (case-insensitive) | Type | . | b . | Byte . | . | s . | Short . | . | L . | Long . | . | f . | Float . | . | d . | Double . | . | (No suffix, integer) . | Integer . | . | (No suffix, decimal) . | Double . | . Example 5. Typed numbers 1b // Byte 1 1 // Integer 1 1.2 // Double 1.2 1.2d // Double 1.2 1.2e1f // Float 12 . ",
"content": "SYNTAX (TOKEN) . TYPED_NUMBER INTEGER [b B s S l L]? | FLOAT [d D f F]? . A typed number is similar to a number used in SNBTs syntax-wise. It’s a normal number followed by a suffix indicating its type: . Table 2. Suffix table | Suffix (case-insensitive) | Type | . | b . | Byte . | . | s . | Short . | . | L . | Long . | . | f . | Float . | . | d . | Double . | . | (No suffix, integer) . | Integer . | . | (No suffix, decimal) . | Double . | . Example 5. Typed numbers 1b // Byte 1 1 // Integer 1 1.2 // Double 1.2 1.2d // Double 1.2 1.2e1f // Float 12 . ",
"url": "/user/mcdoc/#typed-number",
"relUrl": "/user/mcdoc/#typed-number"
},"18": {
Expand Down
2 changes: 1 addition & 1 deletion user/mcdoc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<span class="o">+</span><span class="mi">123</span>
<span class="o">-</span><span class="mi">456</span></code></pre></div> </div> </div> </div> </div> </div> <div class="sect1"> <h2 id="float"> <a href="#float" class="anchor-heading" aria-labelledby="float"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> Float </h2> <div class="sectionbody"> <div class="sidebarblock"> <div class="content"> <div class="paragraph"> <p><strong>SYNTAX (TOKEN)</strong></p> </div> <div id="t-float" class="dlist"> <dl> <dt class="hdlist1"><a href="#t-float">FLOAT</a></dt> <dd> <p>[<code>-</code> <code>+</code>]<sup>?</sup> [<code>0</code>-<code>9</code>]<sup>+</sup> <a href="#t-float-exp">FLOAT_EXPONENT</a><sup>?</sup> |<br> [<code>-</code> <code>+</code>]<sup>?</sup> [<code>0</code>-<code>9</code>]<sup>*</sup> <code>.</code> [<code>0</code>-<code>9</code>]<sup>+</sup> <a href="#t-float-exp">FLOAT_EXPONENT</a><sup>?</sup></p> </dd> </dl> </div> <div id="t-float-exp" class="dlist"> <dl> <dt class="hdlist1"><a href="#t-float-exp">FLOAT_EXPONENT</a></dt> <dd> <p>[<code>e</code> <code>E</code>] [<code>-</code> <code>+</code>]<sup>?</sup> [<code>0</code>-<code>9</code>]<sup>+</sup></p> </dd> </dl> </div> </div> </div> <div class="paragraph"> <p>A float represents a decimal number. Scientific notation may be used with the letter <code>e</code> (case-insensitive).</p> </div> <div class="exampleblock"> <div class="title">Example 4. Floats</div> <div class="content"> <div class="listingblock"> <div class="content"><pre class="rouge highlight"><code data-lang="rust"><span class="mi">1</span>
<span class="o">+</span><span class="mf">1.2</span>
<span class="o">-</span><span class="mf">1.2e3</span> <span class="c1">// -1.2×10<sup>3</sup></span></code></pre></div> </div> </div> </div> </div> </div> <div class="sect1"> <h2 id="typed-number"> <a href="#typed-number" class="anchor-heading" aria-labelledby="typed-number"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> Typed Number </h2> <div class="sectionbody"> <div class="sidebarblock"> <div class="content"> <div class="paragraph"> <p><strong>SYNTAX (TOKEN)</strong></p> </div> <div id="t-typed-number" class="dlist"> <dl> <dt class="hdlist1"><a href="#t-typed-number">TYPED_NUMBER</a></dt> <dd> <p><a href="#t-float">FLOAT</a> [<code>b</code> <code>B</code> <code>d</code> <code>D</code> <code>f</code> <code>F</code> <code>l</code> <code>L</code> <code>s</code> <code>S</code>]<sup>?</sup></p> </dd> </dl> </div> </div> </div> <div class="paragraph"> <p>A typed number is similar to a number used in SNBTs syntax-wise. It&#8217;s a normal number followed by a suffix indicating its type:</p> </div> <div class="table-wrapper"><table class="tableblock frame-all grid-all stretch"> <caption class="title">Table 2. Suffix table</caption> <colgroup> <col style="width: 50%;"> <col style="width: 50%;"> </colgroup> <thead> <tr> <th class="tableblock halign-left valign-top">Suffix (case-insensitive)</th> <th class="tableblock halign-left valign-top">Type</th> </tr> </thead> <tbody> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock"><code>b</code></p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">Byte</p></td> </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock"><code>s</code></p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">Short</p></td> </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock"><code>L</code></p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">Long</p></td> </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock"><code>f</code></p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">Float</p></td> </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock"><code>d</code></p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">Double</p></td> </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">(No suffix, integer)</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">Integer</p></td> </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">(No suffix, decimal)</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">Double</p></td> </tr> </tbody> </table></div> <div class="exampleblock"> <div class="title">Example 5. Typed numbers</div> <div class="content"> <div class="listingblock"> <div class="content"><pre class="rouge highlight"><code data-lang="rust"><span class="mi">1</span><span class="n">b</span> <span class="c1">// Byte 1</span>
<span class="o">-</span><span class="mf">1.2e3</span> <span class="c1">// -1.2×10<sup>3</sup></span></code></pre></div> </div> </div> </div> </div> </div> <div class="sect1"> <h2 id="typed-number"> <a href="#typed-number" class="anchor-heading" aria-labelledby="typed-number"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> Typed Number </h2> <div class="sectionbody"> <div class="sidebarblock"> <div class="content"> <div class="paragraph"> <p><strong>SYNTAX (TOKEN)</strong></p> </div> <div id="t-typed-number" class="dlist"> <dl> <dt class="hdlist1"><a href="#t-typed-number">TYPED_NUMBER</a></dt> <dd> <p><a href="#t-integer">INTEGER</a> [<code>b</code> <code>B</code> <code>s</code> <code>S</code> <code>l</code> <code>L</code>]<sup>?</sup> |<br> <a href="#t-float">FLOAT</a> [<code>d</code> <code>D</code> <code>f</code> <code>F</code>]<sup>?</sup></p> </dd> </dl> </div> </div> </div> <div class="paragraph"> <p>A typed number is similar to a number used in SNBTs syntax-wise. It&#8217;s a normal number followed by a suffix indicating its type:</p> </div> <div class="table-wrapper"><table class="tableblock frame-all grid-all stretch"> <caption class="title">Table 2. Suffix table</caption> <colgroup> <col style="width: 50%;"> <col style="width: 50%;"> </colgroup> <thead> <tr> <th class="tableblock halign-left valign-top">Suffix (case-insensitive)</th> <th class="tableblock halign-left valign-top">Type</th> </tr> </thead> <tbody> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock"><code>b</code></p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">Byte</p></td> </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock"><code>s</code></p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">Short</p></td> </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock"><code>L</code></p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">Long</p></td> </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock"><code>f</code></p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">Float</p></td> </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock"><code>d</code></p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">Double</p></td> </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">(No suffix, integer)</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">Integer</p></td> </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">(No suffix, decimal)</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">Double</p></td> </tr> </tbody> </table></div> <div class="exampleblock"> <div class="title">Example 5. Typed numbers</div> <div class="content"> <div class="listingblock"> <div class="content"><pre class="rouge highlight"><code data-lang="rust"><span class="mi">1</span><span class="n">b</span> <span class="c1">// Byte 1</span>
<span class="mi">1</span> <span class="c1">// Integer 1</span>
<span class="mf">1.2</span> <span class="c1">// Double 1.2</span>
<span class="mf">1.2</span><span class="n">d</span> <span class="c1">// Double 1.2</span>
Expand Down

0 comments on commit eb5bdb0

Please sign in to comment.