From eb5bdb087d658a8a402c9edb66e727563132bbd8 Mon Sep 17 00:00:00 2001 From: SpyglassCrafter Date: Sun, 19 May 2024 15:27:06 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Deploy=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/js/search-data.json | 2 +- user/mcdoc/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/search-data.json b/assets/js/search-data.json index da3736c7a..eabbaf56d 100644 --- a/assets/js/search-data.json +++ b/assets/js/search-data.json @@ -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": { diff --git a/user/mcdoc/index.html b/user/mcdoc/index.html index b3b0e6f15..45d7e8b8d 100644 --- a/user/mcdoc/index.html +++ b/user/mcdoc/index.html @@ -10,7 +10,7 @@ +123 -456

Float

SYNTAX (TOKEN)

FLOAT

[- +]? [0-9]+ FLOAT_EXPONENT? |
[- +]? [0-9]* . [0-9]+ FLOAT_EXPONENT?

FLOAT_EXPONENT

[e E] [- +]? [0-9]+

A float represents a decimal number. Scientific notation may be used with the letter e (case-insensitive).

Example 4. Floats
1
 +1.2
--1.2e3 // -1.2×103

Typed Number

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.2e3 // -1.2×103

Typed Number

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