Skip to content

Commit 8c09edf

Browse files
authored
Fix multipler definitions to use binary value terminology (#11499)
1 parent 93a440a commit 8c09edf

File tree

4 files changed

+152
-152
lines changed

4 files changed

+152
-152
lines changed

reference/5.1/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Both integer and real numeric literals can have type and multiplier suffixes.
33
Locale: en-US
4-
ms.date: 03/01/2023
4+
ms.date: 10/30/2024
55
no-loc: [482gb]
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_numeric_literals?view=powershell-5.1&WT.mc_id=ps-gethelp
77
schema: 2.0.0
@@ -23,14 +23,14 @@ literals are prefixed with `0x` to distinguish them from decimal numbers.
2323

2424
Integer literals can have a type suffix and a multiplier suffix.
2525

26-
| Suffix | Meaning |
27-
| ------ | ------------------- |
28-
| `l` | long data type |
29-
| `kb` | kilobyte multiplier |
30-
| `mb` | megabyte multiplier |
31-
| `gb` | gigabyte multiplier |
32-
| `tb` | terabyte multiplier |
33-
| `Pb` | petabyte multiplier |
26+
| Suffix | Meaning |
27+
| ------ | -------------------------------------- |
28+
| `l` | long data type |
29+
| `kb` | kibibyte (1024<sup>1</sup>) multiplier |
30+
| `mb` | mebibyte (1024<sup>2</sup>) multiplier |
31+
| `gb` | gigibyte (1024<sup>3</sup>) multiplier |
32+
| `tb` | teribyte (1024<sup>4</sup>) multiplier |
33+
| `pb` | petibyte (1024<sup>5</sup>) multiplier |
3434

3535
The type of an integer literal is determined by its value, the type suffix, and
3636
the numeric multiplier suffix.
@@ -65,14 +65,14 @@ the numeric value 100.
6565

6666
Real literals can have a type suffix and a multiplier suffix.
6767

68-
| Suffix | Meaning |
69-
| ------ | ------------------- |
70-
| `d` | decimal data type |
71-
| `kb` | kilobyte multiplier |
72-
| `mb` | megabyte multiplier |
73-
| `gb` | gigabyte multiplier |
74-
| `tb` | terabyte multiplier |
75-
| `pb` | petabyte multiplier |
68+
| Suffix | Meaning |
69+
| ------ | -------------------------------------- |
70+
| `d` | decimal data type |
71+
| `kb` | kibibyte (1024<sup>1</sup>) multiplier |
72+
| `mb` | mebibyte (1024<sup>2</sup>) multiplier |
73+
| `gb` | gigibyte (1024<sup>3</sup>) multiplier |
74+
| `tb` | teribyte (1024<sup>4</sup>) multiplier |
75+
| `pb` | petibyte (1024<sup>5</sup>) multiplier |
7676

7777
There are two kinds of real literal: double and decimal. These are indicated by
7878
the absence or presence, respectively, of decimal-type suffix. PowerShell does

reference/7.2/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Both integer and real numeric literals can have type and multiplier suffixes.
33
Locale: en-US
4-
ms.date: 03/01/2023
4+
ms.date: 10/30/2024
55
no-loc: [482gb]
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_numeric_literals?view=powershell-7.2&WT.mc_id=ps-gethelp
77
schema: 2.0.0
@@ -24,21 +24,21 @@ with `0b` to distinguish them from decimal numbers.
2424

2525
Integer literals can have a type suffix and a multiplier suffix.
2626

27-
| Suffix | Meaning | Note |
28-
| ------ | ------------------------------ | ----------------------- |
29-
| `y` | signed byte data type | Added in PowerShell 6.2 |
30-
| `uy` | unsigned byte data type | Added in PowerShell 6.2 |
31-
| `s` | short data type | Added in PowerShell 6.2 |
32-
| `us` | unsigned short data type | Added in PowerShell 6.2 |
33-
| `l` | long data type | |
34-
| `u` | unsigned int or long data type | Added in PowerShell 6.2 |
35-
| `ul` | unsigned long data type | Added in PowerShell 6.2 |
36-
| `n` | BigInteger data type | Added in PowerShell 7.0 |
37-
| `kb` | kilobyte multiplier | |
38-
| `mb` | megabyte multiplier | |
39-
| `gb` | gigabyte multiplier | |
40-
| `tb` | terabyte multiplier | |
41-
| `pb` | petabyte multiplier | |
27+
| Suffix | Meaning | Note |
28+
| ------ | -------------------------------------- | ----------------------- |
29+
| `y` | signed byte data type | Added in PowerShell 6.2 |
30+
| `uy` | unsigned byte data type | Added in PowerShell 6.2 |
31+
| `s` | short data type | Added in PowerShell 6.2 |
32+
| `us` | unsigned short data type | Added in PowerShell 6.2 |
33+
| `l` | long data type | |
34+
| `u` | unsigned int or long data type | Added in PowerShell 6.2 |
35+
| `ul` | unsigned long data type | Added in PowerShell 6.2 |
36+
| `n` | BigInteger data type | Added in PowerShell 7.0 |
37+
| `kb` | kibibyte (1024<sup>1</sup>) multiplier | |
38+
| `mb` | mebibyte (1024<sup>2</sup>) multiplier | |
39+
| `gb` | gigibyte (1024<sup>3</sup>) multiplier | |
40+
| `tb` | teribyte (1024<sup>4</sup>) multiplier | |
41+
| `pb` | petibyte (1024<sup>5</sup>) multiplier | |
4242

4343
The type of an integer literal is determined by its value, the type suffix, and
4444
the numeric multiplier suffix.
@@ -73,14 +73,14 @@ the numeric value 100.
7373

7474
Real literals can have a type suffix and a multiplier suffix.
7575

76-
| Suffix | Meaning |
77-
| ------ | ------------------- |
78-
| `d` | decimal data type |
79-
| `kb` | kilobyte multiplier |
80-
| `mb` | megabyte multiplier |
81-
| `gb` | gigabyte multiplier |
82-
| `tb` | terabyte multiplier |
83-
| `pb` | petabyte multiplier |
76+
| Suffix | Meaning |
77+
| ------ | -------------------------------------- |
78+
| `d` | decimal data type |
79+
| `kb` | kibibyte (1024<sup>1</sup>) multiplier |
80+
| `mb` | mebibyte (1024<sup>2</sup>) multiplier |
81+
| `gb` | gigibyte (1024<sup>3</sup>) multiplier |
82+
| `tb` | teribyte (1024<sup>4</sup>) multiplier |
83+
| `pb` | petibyte (1024<sup>5</sup>) multiplier |
8484

8585
There are two kinds of real literal: double and decimal. These are indicated by
8686
the absence or presence, respectively, of decimal-type suffix. PowerShell does
@@ -143,27 +143,27 @@ PS> 0x12Lpb
143143

144144
PowerShell supports the following type accelerators:
145145

146-
| Accelerator | Note | Description |
147-
| ----------- | -------------------- | -------------------------------- |
148-
| `[byte]` | | Byte (unsigned) |
149-
| `[sbyte]` | | Byte (signed) |
150-
| `[Int16]` | | 16-bit integer |
151-
| `[short]` | alias for `[int16]` | 16-bit integer |
152-
| `[UInt16]` | | 16-bit integer (unsigned) |
153-
| `[ushort]` | alias for `[uint16]` | 16-bit integer (unsigned) |
154-
| `[Int32]` | | 32-bit integer |
155-
| `[int]` | alias for `[int32]` | 32-bit integer |
156-
| `[UInt32]` | | 32-bit integer (unsigned) |
157-
| `[uint]` | alias for `[uint32]` | 32-bit integer (unsigned) |
158-
| `[Int64]` | | 64-bit integer |
159-
| `[long]` | alias for `[int64]` | 64-bit integer |
160-
| `[UInt64]` | | 64-bit integer (unsigned) |
161-
| `[ulong]` | alias for `[uint64]` | 64-bit integer (unsigned) |
162-
| `[bigint]` | | See [BigInteger Struct][bigint] |
163-
| `[single]` | | Single precision floating point |
164-
| `[float]` | alias for `[single]` | Single precision floating point |
165-
| `[double]` | | Double precision floating point |
166-
| `[decimal]` | | 128-bit floating point |
146+
| Accelerator | Note | Description |
147+
| ----------- | -------------------- | ------------------------------- |
148+
| `[byte]` | | Byte (unsigned) |
149+
| `[sbyte]` | | Byte (signed) |
150+
| `[Int16]` | | 16-bit integer |
151+
| `[short]` | alias for `[int16]` | 16-bit integer |
152+
| `[UInt16]` | | 16-bit integer (unsigned) |
153+
| `[ushort]` | alias for `[uint16]` | 16-bit integer (unsigned) |
154+
| `[Int32]` | | 32-bit integer |
155+
| `[int]` | alias for `[int32]` | 32-bit integer |
156+
| `[UInt32]` | | 32-bit integer (unsigned) |
157+
| `[uint]` | alias for `[uint32]` | 32-bit integer (unsigned) |
158+
| `[Int64]` | | 64-bit integer |
159+
| `[long]` | alias for `[int64]` | 64-bit integer |
160+
| `[UInt64]` | | 64-bit integer (unsigned) |
161+
| `[ulong]` | alias for `[uint64]` | 64-bit integer (unsigned) |
162+
| `[bigint]` | | See [BigInteger Struct][bigint] |
163+
| `[single]` | | Single precision floating point |
164+
| `[float]` | alias for `[single]` | Single precision floating point |
165+
| `[double]` | | Double precision floating point |
166+
| `[decimal]` | | 128-bit floating point |
167167

168168
> [!NOTE]
169169
> The following type accelerators were added in PowerShell 6.2: `[short]`,

reference/7.4/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Both integer and real numeric literals can have type and multiplier suffixes.
33
Locale: en-US
4-
ms.date: 03/01/2023
4+
ms.date: 10/30/2024
55
no-loc: [482gb]
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_numeric_literals?view=powershell-7.4&WT.mc_id=ps-gethelp
77
schema: 2.0.0
@@ -24,21 +24,21 @@ with `0b` to distinguish them from decimal numbers.
2424

2525
Integer literals can have a type suffix and a multiplier suffix.
2626

27-
| Suffix | Meaning | Note |
28-
| ------ | ------------------------------ | ----------------------- |
29-
| `y` | signed byte data type | Added in PowerShell 6.2 |
30-
| `uy` | unsigned byte data type | Added in PowerShell 6.2 |
31-
| `s` | short data type | Added in PowerShell 6.2 |
32-
| `us` | unsigned short data type | Added in PowerShell 6.2 |
33-
| `l` | long data type | |
34-
| `u` | unsigned int or long data type | Added in PowerShell 6.2 |
35-
| `ul` | unsigned long data type | Added in PowerShell 6.2 |
36-
| `n` | BigInteger data type | Added in PowerShell 7.0 |
37-
| `kb` | kilobyte multiplier | |
38-
| `mb` | megabyte multiplier | |
39-
| `gb` | gigabyte multiplier | |
40-
| `tb` | terabyte multiplier | |
41-
| `pb` | petabyte multiplier | |
27+
| Suffix | Meaning | Note |
28+
| ------ | -------------------------------------- | ----------------------- |
29+
| `y` | signed byte data type | Added in PowerShell 6.2 |
30+
| `uy` | unsigned byte data type | Added in PowerShell 6.2 |
31+
| `s` | short data type | Added in PowerShell 6.2 |
32+
| `us` | unsigned short data type | Added in PowerShell 6.2 |
33+
| `l` | long data type | |
34+
| `u` | unsigned int or long data type | Added in PowerShell 6.2 |
35+
| `ul` | unsigned long data type | Added in PowerShell 6.2 |
36+
| `n` | BigInteger data type | Added in PowerShell 7.0 |
37+
| `kb` | kibibyte (1024<sup>1</sup>) multiplier | |
38+
| `mb` | mebibyte (1024<sup>2</sup>) multiplier | |
39+
| `gb` | gigibyte (1024<sup>3</sup>) multiplier | |
40+
| `tb` | teribyte (1024<sup>4</sup>) multiplier | |
41+
| `pb` | petibyte (1024<sup>5</sup>) multiplier | |
4242

4343
The type of an integer literal is determined by its value, the type suffix, and
4444
the numeric multiplier suffix.
@@ -73,14 +73,14 @@ the numeric value 100.
7373

7474
Real literals can have a type suffix and a multiplier suffix.
7575

76-
| Suffix | Meaning |
77-
| ------ | ------------------- |
78-
| `d` | decimal data type |
79-
| `kb` | kilobyte multiplier |
80-
| `mb` | megabyte multiplier |
81-
| `gb` | gigabyte multiplier |
82-
| `tb` | terabyte multiplier |
83-
| `pb` | petabyte multiplier |
76+
| Suffix | Meaning |
77+
| ------ | -------------------------------------- |
78+
| `d` | decimal data type |
79+
| `kb` | kibibyte (1024<sup>1</sup>) multiplier |
80+
| `mb` | mebibyte (1024<sup>2</sup>) multiplier |
81+
| `gb` | gigibyte (1024<sup>3</sup>) multiplier |
82+
| `tb` | teribyte (1024<sup>4</sup>) multiplier |
83+
| `pb` | petibyte (1024<sup>5</sup>) multiplier |
8484

8585
There are two kinds of real literal: double and decimal. These are indicated by
8686
the absence or presence, respectively, of decimal-type suffix. PowerShell does
@@ -143,27 +143,27 @@ PS> 0x12Lpb
143143

144144
PowerShell supports the following type accelerators:
145145

146-
| Accelerator | Note | Description |
147-
| ----------- | -------------------- | -------------------------------- |
148-
| `[byte]` | | Byte (unsigned) |
149-
| `[sbyte]` | | Byte (signed) |
150-
| `[Int16]` | | 16-bit integer |
151-
| `[short]` | alias for `[int16]` | 16-bit integer |
152-
| `[UInt16]` | | 16-bit integer (unsigned) |
153-
| `[ushort]` | alias for `[uint16]` | 16-bit integer (unsigned) |
154-
| `[Int32]` | | 32-bit integer |
155-
| `[int]` | alias for `[int32]` | 32-bit integer |
156-
| `[UInt32]` | | 32-bit integer (unsigned) |
157-
| `[uint]` | alias for `[uint32]` | 32-bit integer (unsigned) |
158-
| `[Int64]` | | 64-bit integer |
159-
| `[long]` | alias for `[int64]` | 64-bit integer |
160-
| `[UInt64]` | | 64-bit integer (unsigned) |
161-
| `[ulong]` | alias for `[uint64]` | 64-bit integer (unsigned) |
162-
| `[bigint]` | | See [BigInteger Struct][bigint] |
163-
| `[single]` | | Single precision floating point |
164-
| `[float]` | alias for `[single]` | Single precision floating point |
165-
| `[double]` | | Double precision floating point |
166-
| `[decimal]` | | 128-bit floating point |
146+
| Accelerator | Note | Description |
147+
| ----------- | -------------------- | ------------------------------- |
148+
| `[byte]` | | Byte (unsigned) |
149+
| `[sbyte]` | | Byte (signed) |
150+
| `[Int16]` | | 16-bit integer |
151+
| `[short]` | alias for `[int16]` | 16-bit integer |
152+
| `[UInt16]` | | 16-bit integer (unsigned) |
153+
| `[ushort]` | alias for `[uint16]` | 16-bit integer (unsigned) |
154+
| `[Int32]` | | 32-bit integer |
155+
| `[int]` | alias for `[int32]` | 32-bit integer |
156+
| `[UInt32]` | | 32-bit integer (unsigned) |
157+
| `[uint]` | alias for `[uint32]` | 32-bit integer (unsigned) |
158+
| `[Int64]` | | 64-bit integer |
159+
| `[long]` | alias for `[int64]` | 64-bit integer |
160+
| `[UInt64]` | | 64-bit integer (unsigned) |
161+
| `[ulong]` | alias for `[uint64]` | 64-bit integer (unsigned) |
162+
| `[bigint]` | | See [BigInteger Struct][bigint] |
163+
| `[single]` | | Single precision floating point |
164+
| `[float]` | alias for `[single]` | Single precision floating point |
165+
| `[double]` | | Double precision floating point |
166+
| `[decimal]` | | 128-bit floating point |
167167

168168
> [!NOTE]
169169
> The following type accelerators were added in PowerShell 6.2: `[short]`,

0 commit comments

Comments
 (0)