From 8c09edf17a145939dd0e7836d02d7a717171352b Mon Sep 17 00:00:00 2001 From: Sean Wheeler Date: Wed, 30 Oct 2024 12:31:54 -0500 Subject: [PATCH] Fix multipler definitions to use binary value terminology (#11499) --- .../About/about_Numeric_Literals.md | 34 +++---- .../About/about_Numeric_Literals.md | 90 +++++++++---------- .../About/about_Numeric_Literals.md | 90 +++++++++---------- .../About/about_Numeric_Literals.md | 90 +++++++++---------- 4 files changed, 152 insertions(+), 152 deletions(-) diff --git a/reference/5.1/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md b/reference/5.1/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md index 0aeeba7787dc..0e01b0a680f7 100644 --- a/reference/5.1/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md +++ b/reference/5.1/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md @@ -1,7 +1,7 @@ --- description: Both integer and real numeric literals can have type and multiplier suffixes. Locale: en-US -ms.date: 03/01/2023 +ms.date: 10/30/2024 no-loc: [482gb] online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_numeric_literals?view=powershell-5.1&WT.mc_id=ps-gethelp schema: 2.0.0 @@ -23,14 +23,14 @@ literals are prefixed with `0x` to distinguish them from decimal numbers. Integer literals can have a type suffix and a multiplier suffix. -| Suffix | Meaning | -| ------ | ------------------- | -| `l` | long data type | -| `kb` | kilobyte multiplier | -| `mb` | megabyte multiplier | -| `gb` | gigabyte multiplier | -| `tb` | terabyte multiplier | -| `Pb` | petabyte multiplier | +| Suffix | Meaning | +| ------ | -------------------------------------- | +| `l` | long data type | +| `kb` | kibibyte (10241) multiplier | +| `mb` | mebibyte (10242) multiplier | +| `gb` | gigibyte (10243) multiplier | +| `tb` | teribyte (10244) multiplier | +| `pb` | petibyte (10245) multiplier | The type of an integer literal is determined by its value, the type suffix, and the numeric multiplier suffix. @@ -65,14 +65,14 @@ the numeric value 100. Real literals can have a type suffix and a multiplier suffix. -| Suffix | Meaning | -| ------ | ------------------- | -| `d` | decimal data type | -| `kb` | kilobyte multiplier | -| `mb` | megabyte multiplier | -| `gb` | gigabyte multiplier | -| `tb` | terabyte multiplier | -| `pb` | petabyte multiplier | +| Suffix | Meaning | +| ------ | -------------------------------------- | +| `d` | decimal data type | +| `kb` | kibibyte (10241) multiplier | +| `mb` | mebibyte (10242) multiplier | +| `gb` | gigibyte (10243) multiplier | +| `tb` | teribyte (10244) multiplier | +| `pb` | petibyte (10245) multiplier | There are two kinds of real literal: double and decimal. These are indicated by the absence or presence, respectively, of decimal-type suffix. PowerShell does diff --git a/reference/7.2/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md b/reference/7.2/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md index fa4297ba8ae8..1a74d4fd1ca2 100644 --- a/reference/7.2/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md +++ b/reference/7.2/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md @@ -1,7 +1,7 @@ --- description: Both integer and real numeric literals can have type and multiplier suffixes. Locale: en-US -ms.date: 03/01/2023 +ms.date: 10/30/2024 no-loc: [482gb] online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_numeric_literals?view=powershell-7.2&WT.mc_id=ps-gethelp schema: 2.0.0 @@ -24,21 +24,21 @@ with `0b` to distinguish them from decimal numbers. Integer literals can have a type suffix and a multiplier suffix. -| Suffix | Meaning | Note | -| ------ | ------------------------------ | ----------------------- | -| `y` | signed byte data type | Added in PowerShell 6.2 | -| `uy` | unsigned byte data type | Added in PowerShell 6.2 | -| `s` | short data type | Added in PowerShell 6.2 | -| `us` | unsigned short data type | Added in PowerShell 6.2 | -| `l` | long data type | | -| `u` | unsigned int or long data type | Added in PowerShell 6.2 | -| `ul` | unsigned long data type | Added in PowerShell 6.2 | -| `n` | BigInteger data type | Added in PowerShell 7.0 | -| `kb` | kilobyte multiplier | | -| `mb` | megabyte multiplier | | -| `gb` | gigabyte multiplier | | -| `tb` | terabyte multiplier | | -| `pb` | petabyte multiplier | | +| Suffix | Meaning | Note | +| ------ | -------------------------------------- | ----------------------- | +| `y` | signed byte data type | Added in PowerShell 6.2 | +| `uy` | unsigned byte data type | Added in PowerShell 6.2 | +| `s` | short data type | Added in PowerShell 6.2 | +| `us` | unsigned short data type | Added in PowerShell 6.2 | +| `l` | long data type | | +| `u` | unsigned int or long data type | Added in PowerShell 6.2 | +| `ul` | unsigned long data type | Added in PowerShell 6.2 | +| `n` | BigInteger data type | Added in PowerShell 7.0 | +| `kb` | kibibyte (10241) multiplier | | +| `mb` | mebibyte (10242) multiplier | | +| `gb` | gigibyte (10243) multiplier | | +| `tb` | teribyte (10244) multiplier | | +| `pb` | petibyte (10245) multiplier | | The type of an integer literal is determined by its value, the type suffix, and the numeric multiplier suffix. @@ -73,14 +73,14 @@ the numeric value 100. Real literals can have a type suffix and a multiplier suffix. -| Suffix | Meaning | -| ------ | ------------------- | -| `d` | decimal data type | -| `kb` | kilobyte multiplier | -| `mb` | megabyte multiplier | -| `gb` | gigabyte multiplier | -| `tb` | terabyte multiplier | -| `pb` | petabyte multiplier | +| Suffix | Meaning | +| ------ | -------------------------------------- | +| `d` | decimal data type | +| `kb` | kibibyte (10241) multiplier | +| `mb` | mebibyte (10242) multiplier | +| `gb` | gigibyte (10243) multiplier | +| `tb` | teribyte (10244) multiplier | +| `pb` | petibyte (10245) multiplier | There are two kinds of real literal: double and decimal. These are indicated by the absence or presence, respectively, of decimal-type suffix. PowerShell does @@ -143,27 +143,27 @@ PS> 0x12Lpb PowerShell supports the following type accelerators: -| Accelerator | Note | Description | -| ----------- | -------------------- | -------------------------------- | -| `[byte]` | | Byte (unsigned) | -| `[sbyte]` | | Byte (signed) | -| `[Int16]` | | 16-bit integer | -| `[short]` | alias for `[int16]` | 16-bit integer | -| `[UInt16]` | | 16-bit integer (unsigned) | -| `[ushort]` | alias for `[uint16]` | 16-bit integer (unsigned) | -| `[Int32]` | | 32-bit integer | -| `[int]` | alias for `[int32]` | 32-bit integer | -| `[UInt32]` | | 32-bit integer (unsigned) | -| `[uint]` | alias for `[uint32]` | 32-bit integer (unsigned) | -| `[Int64]` | | 64-bit integer | -| `[long]` | alias for `[int64]` | 64-bit integer | -| `[UInt64]` | | 64-bit integer (unsigned) | -| `[ulong]` | alias for `[uint64]` | 64-bit integer (unsigned) | -| `[bigint]` | | See [BigInteger Struct][bigint] | -| `[single]` | | Single precision floating point | -| `[float]` | alias for `[single]` | Single precision floating point | -| `[double]` | | Double precision floating point | -| `[decimal]` | | 128-bit floating point | +| Accelerator | Note | Description | +| ----------- | -------------------- | ------------------------------- | +| `[byte]` | | Byte (unsigned) | +| `[sbyte]` | | Byte (signed) | +| `[Int16]` | | 16-bit integer | +| `[short]` | alias for `[int16]` | 16-bit integer | +| `[UInt16]` | | 16-bit integer (unsigned) | +| `[ushort]` | alias for `[uint16]` | 16-bit integer (unsigned) | +| `[Int32]` | | 32-bit integer | +| `[int]` | alias for `[int32]` | 32-bit integer | +| `[UInt32]` | | 32-bit integer (unsigned) | +| `[uint]` | alias for `[uint32]` | 32-bit integer (unsigned) | +| `[Int64]` | | 64-bit integer | +| `[long]` | alias for `[int64]` | 64-bit integer | +| `[UInt64]` | | 64-bit integer (unsigned) | +| `[ulong]` | alias for `[uint64]` | 64-bit integer (unsigned) | +| `[bigint]` | | See [BigInteger Struct][bigint] | +| `[single]` | | Single precision floating point | +| `[float]` | alias for `[single]` | Single precision floating point | +| `[double]` | | Double precision floating point | +| `[decimal]` | | 128-bit floating point | > [!NOTE] > The following type accelerators were added in PowerShell 6.2: `[short]`, diff --git a/reference/7.4/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md b/reference/7.4/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md index 3a7dc16dfbcc..6372fcc44325 100644 --- a/reference/7.4/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md +++ b/reference/7.4/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md @@ -1,7 +1,7 @@ --- description: Both integer and real numeric literals can have type and multiplier suffixes. Locale: en-US -ms.date: 03/01/2023 +ms.date: 10/30/2024 no-loc: [482gb] online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_numeric_literals?view=powershell-7.4&WT.mc_id=ps-gethelp schema: 2.0.0 @@ -24,21 +24,21 @@ with `0b` to distinguish them from decimal numbers. Integer literals can have a type suffix and a multiplier suffix. -| Suffix | Meaning | Note | -| ------ | ------------------------------ | ----------------------- | -| `y` | signed byte data type | Added in PowerShell 6.2 | -| `uy` | unsigned byte data type | Added in PowerShell 6.2 | -| `s` | short data type | Added in PowerShell 6.2 | -| `us` | unsigned short data type | Added in PowerShell 6.2 | -| `l` | long data type | | -| `u` | unsigned int or long data type | Added in PowerShell 6.2 | -| `ul` | unsigned long data type | Added in PowerShell 6.2 | -| `n` | BigInteger data type | Added in PowerShell 7.0 | -| `kb` | kilobyte multiplier | | -| `mb` | megabyte multiplier | | -| `gb` | gigabyte multiplier | | -| `tb` | terabyte multiplier | | -| `pb` | petabyte multiplier | | +| Suffix | Meaning | Note | +| ------ | -------------------------------------- | ----------------------- | +| `y` | signed byte data type | Added in PowerShell 6.2 | +| `uy` | unsigned byte data type | Added in PowerShell 6.2 | +| `s` | short data type | Added in PowerShell 6.2 | +| `us` | unsigned short data type | Added in PowerShell 6.2 | +| `l` | long data type | | +| `u` | unsigned int or long data type | Added in PowerShell 6.2 | +| `ul` | unsigned long data type | Added in PowerShell 6.2 | +| `n` | BigInteger data type | Added in PowerShell 7.0 | +| `kb` | kibibyte (10241) multiplier | | +| `mb` | mebibyte (10242) multiplier | | +| `gb` | gigibyte (10243) multiplier | | +| `tb` | teribyte (10244) multiplier | | +| `pb` | petibyte (10245) multiplier | | The type of an integer literal is determined by its value, the type suffix, and the numeric multiplier suffix. @@ -73,14 +73,14 @@ the numeric value 100. Real literals can have a type suffix and a multiplier suffix. -| Suffix | Meaning | -| ------ | ------------------- | -| `d` | decimal data type | -| `kb` | kilobyte multiplier | -| `mb` | megabyte multiplier | -| `gb` | gigabyte multiplier | -| `tb` | terabyte multiplier | -| `pb` | petabyte multiplier | +| Suffix | Meaning | +| ------ | -------------------------------------- | +| `d` | decimal data type | +| `kb` | kibibyte (10241) multiplier | +| `mb` | mebibyte (10242) multiplier | +| `gb` | gigibyte (10243) multiplier | +| `tb` | teribyte (10244) multiplier | +| `pb` | petibyte (10245) multiplier | There are two kinds of real literal: double and decimal. These are indicated by the absence or presence, respectively, of decimal-type suffix. PowerShell does @@ -143,27 +143,27 @@ PS> 0x12Lpb PowerShell supports the following type accelerators: -| Accelerator | Note | Description | -| ----------- | -------------------- | -------------------------------- | -| `[byte]` | | Byte (unsigned) | -| `[sbyte]` | | Byte (signed) | -| `[Int16]` | | 16-bit integer | -| `[short]` | alias for `[int16]` | 16-bit integer | -| `[UInt16]` | | 16-bit integer (unsigned) | -| `[ushort]` | alias for `[uint16]` | 16-bit integer (unsigned) | -| `[Int32]` | | 32-bit integer | -| `[int]` | alias for `[int32]` | 32-bit integer | -| `[UInt32]` | | 32-bit integer (unsigned) | -| `[uint]` | alias for `[uint32]` | 32-bit integer (unsigned) | -| `[Int64]` | | 64-bit integer | -| `[long]` | alias for `[int64]` | 64-bit integer | -| `[UInt64]` | | 64-bit integer (unsigned) | -| `[ulong]` | alias for `[uint64]` | 64-bit integer (unsigned) | -| `[bigint]` | | See [BigInteger Struct][bigint] | -| `[single]` | | Single precision floating point | -| `[float]` | alias for `[single]` | Single precision floating point | -| `[double]` | | Double precision floating point | -| `[decimal]` | | 128-bit floating point | +| Accelerator | Note | Description | +| ----------- | -------------------- | ------------------------------- | +| `[byte]` | | Byte (unsigned) | +| `[sbyte]` | | Byte (signed) | +| `[Int16]` | | 16-bit integer | +| `[short]` | alias for `[int16]` | 16-bit integer | +| `[UInt16]` | | 16-bit integer (unsigned) | +| `[ushort]` | alias for `[uint16]` | 16-bit integer (unsigned) | +| `[Int32]` | | 32-bit integer | +| `[int]` | alias for `[int32]` | 32-bit integer | +| `[UInt32]` | | 32-bit integer (unsigned) | +| `[uint]` | alias for `[uint32]` | 32-bit integer (unsigned) | +| `[Int64]` | | 64-bit integer | +| `[long]` | alias for `[int64]` | 64-bit integer | +| `[UInt64]` | | 64-bit integer (unsigned) | +| `[ulong]` | alias for `[uint64]` | 64-bit integer (unsigned) | +| `[bigint]` | | See [BigInteger Struct][bigint] | +| `[single]` | | Single precision floating point | +| `[float]` | alias for `[single]` | Single precision floating point | +| `[double]` | | Double precision floating point | +| `[decimal]` | | 128-bit floating point | > [!NOTE] > The following type accelerators were added in PowerShell 6.2: `[short]`, diff --git a/reference/7.5/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md b/reference/7.5/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md index aa44f252faa2..25f9470c1944 100644 --- a/reference/7.5/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md +++ b/reference/7.5/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md @@ -1,7 +1,7 @@ --- description: Both integer and real numeric literals can have type and multiplier suffixes. Locale: en-US -ms.date: 03/01/2023 +ms.date: 10/30/2024 no-loc: [482gb] online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_numeric_literals?view=powershell-7.5&WT.mc_id=ps-gethelp schema: 2.0.0 @@ -24,21 +24,21 @@ with `0b` to distinguish them from decimal numbers. Integer literals can have a type suffix and a multiplier suffix. -| Suffix | Meaning | Note | -| ------ | ------------------------------ | ----------------------- | -| `y` | signed byte data type | Added in PowerShell 6.2 | -| `uy` | unsigned byte data type | Added in PowerShell 6.2 | -| `s` | short data type | Added in PowerShell 6.2 | -| `us` | unsigned short data type | Added in PowerShell 6.2 | -| `l` | long data type | | -| `u` | unsigned int or long data type | Added in PowerShell 6.2 | -| `ul` | unsigned long data type | Added in PowerShell 6.2 | -| `n` | BigInteger data type | Added in PowerShell 7.0 | -| `kb` | kilobyte multiplier | | -| `mb` | megabyte multiplier | | -| `gb` | gigabyte multiplier | | -| `tb` | terabyte multiplier | | -| `pb` | petabyte multiplier | | +| Suffix | Meaning | Note | +| ------ | -------------------------------------- | ----------------------- | +| `y` | signed byte data type | Added in PowerShell 6.2 | +| `uy` | unsigned byte data type | Added in PowerShell 6.2 | +| `s` | short data type | Added in PowerShell 6.2 | +| `us` | unsigned short data type | Added in PowerShell 6.2 | +| `l` | long data type | | +| `u` | unsigned int or long data type | Added in PowerShell 6.2 | +| `ul` | unsigned long data type | Added in PowerShell 6.2 | +| `n` | BigInteger data type | Added in PowerShell 7.0 | +| `kb` | kibibyte (10241) multiplier | | +| `mb` | mebibyte (10242) multiplier | | +| `gb` | gigibyte (10243) multiplier | | +| `tb` | teribyte (10244) multiplier | | +| `pb` | petibyte (10245) multiplier | | The type of an integer literal is determined by its value, the type suffix, and the numeric multiplier suffix. @@ -73,14 +73,14 @@ the numeric value 100. Real literals can have a type suffix and a multiplier suffix. -| Suffix | Meaning | -| ------ | ------------------- | -| `d` | decimal data type | -| `kb` | kilobyte multiplier | -| `mb` | megabyte multiplier | -| `gb` | gigabyte multiplier | -| `tb` | terabyte multiplier | -| `pb` | petabyte multiplier | +| Suffix | Meaning | +| ------ | -------------------------------------- | +| `d` | decimal data type | +| `kb` | kibibyte (10241) multiplier | +| `mb` | mebibyte (10242) multiplier | +| `gb` | gigibyte (10243) multiplier | +| `tb` | teribyte (10244) multiplier | +| `pb` | petibyte (10245) multiplier | There are two kinds of real literal: double and decimal. These are indicated by the absence or presence, respectively, of decimal-type suffix. PowerShell does @@ -143,27 +143,27 @@ PS> 0x12Lpb PowerShell supports the following type accelerators: -| Accelerator | Note | Description | -| ----------- | -------------------- | -------------------------------- | -| `[byte]` | | Byte (unsigned) | -| `[sbyte]` | | Byte (signed) | -| `[Int16]` | | 16-bit integer | -| `[short]` | alias for `[int16]` | 16-bit integer | -| `[UInt16]` | | 16-bit integer (unsigned) | -| `[ushort]` | alias for `[uint16]` | 16-bit integer (unsigned) | -| `[Int32]` | | 32-bit integer | -| `[int]` | alias for `[int32]` | 32-bit integer | -| `[UInt32]` | | 32-bit integer (unsigned) | -| `[uint]` | alias for `[uint32]` | 32-bit integer (unsigned) | -| `[Int64]` | | 64-bit integer | -| `[long]` | alias for `[int64]` | 64-bit integer | -| `[UInt64]` | | 64-bit integer (unsigned) | -| `[ulong]` | alias for `[uint64]` | 64-bit integer (unsigned) | -| `[bigint]` | | See [BigInteger Struct][bigint] | -| `[single]` | | Single precision floating point | -| `[float]` | alias for `[single]` | Single precision floating point | -| `[double]` | | Double precision floating point | -| `[decimal]` | | 128-bit floating point | +| Accelerator | Note | Description | +| ----------- | -------------------- | ------------------------------- | +| `[byte]` | | Byte (unsigned) | +| `[sbyte]` | | Byte (signed) | +| `[Int16]` | | 16-bit integer | +| `[short]` | alias for `[int16]` | 16-bit integer | +| `[UInt16]` | | 16-bit integer (unsigned) | +| `[ushort]` | alias for `[uint16]` | 16-bit integer (unsigned) | +| `[Int32]` | | 32-bit integer | +| `[int]` | alias for `[int32]` | 32-bit integer | +| `[UInt32]` | | 32-bit integer (unsigned) | +| `[uint]` | alias for `[uint32]` | 32-bit integer (unsigned) | +| `[Int64]` | | 64-bit integer | +| `[long]` | alias for `[int64]` | 64-bit integer | +| `[UInt64]` | | 64-bit integer (unsigned) | +| `[ulong]` | alias for `[uint64]` | 64-bit integer (unsigned) | +| `[bigint]` | | See [BigInteger Struct][bigint] | +| `[single]` | | Single precision floating point | +| `[float]` | alias for `[single]` | Single precision floating point | +| `[double]` | | Double precision floating point | +| `[decimal]` | | 128-bit floating point | > [!NOTE] > The following type accelerators were added in PowerShell 6.2: `[short]`,