Skip to content

Additional hexadecimal indicators in strings#8345

Merged
sdwheeler merged 6 commits intoMicrosoftDocs:stagingfrom
yecril71pl:patch-6
Nov 15, 2021
Merged

Additional hexadecimal indicators in strings#8345
sdwheeler merged 6 commits intoMicrosoftDocs:stagingfrom
yecril71pl:patch-6

Conversation

@yecril71pl
Copy link
Copy Markdown
Contributor

@yecril71pl yecril71pl commented Nov 12, 2021

PR Summary

Add information about hexadecimal string formats that can be converted to numbers
Add information about hexadecimal string formats that can be converted to numbers

PR Context

Select the area of the Table of Contents containing the documents being changed.

Conceptual content

  • Overview and Install
  • Learning PowerShell
    • PowerShell 101
    • Deep dives
    • Sample scripts
    • Remoting
  • Release notes (What's New)
  • Windows PowerShell
    • WMF, ISE, release notes, etc.
  • DSC articles
  • Community resources
  • Gallery articles
  • Scripting and development
    • Language Spec
    • Legacy SDK

Cmdlet reference & about_ topics

  • Preview content
  • Version 7.2 content
  • Version 7.1 content
  • Version 7.0 content
  • Version 5.1 content

PR Checklist

  • I have read the contributors guide and followed the style and process guidelines
  • PR has a meaningful title
  • PR is targeted at the staging branch
  • All relevant versions updated
  • Includes content related to issues and PRs - see Closing issues using keywords.
  • This PR is ready to merge and is not Work in Progress
    • If the PR is work in progress, please add the prefix WIP: or [WIP] to the beginning of the
      title and remove the prefix when the PR is ready.

@opbld30
Copy link
Copy Markdown

opbld30 commented Nov 12, 2021

Docs Build status updates of commit e550ac3:

✅ Validation status: passed

File Status Preview URL Details
reference/7.1/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md ✅Succeeded View (powershell-7.1)

For more details, please refer to the build report.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

For any questions, please:

@sdwheeler
Copy link
Copy Markdown
Collaborator

I made a minor edit. Can you copy that to the other versions and update the PR?

@opbld32
Copy link
Copy Markdown

opbld32 commented Nov 12, 2021

Docs Build status updates of commit 9da1d97:

✅ Validation status: passed

File Status Preview URL Details
reference/7.1/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md ✅Succeeded View (powershell-7.1)

For more details, please refer to the build report.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

For any questions, please:

@opbld33
Copy link
Copy Markdown

opbld33 commented Nov 12, 2021

Docs Build status updates of commit cabecfb:

❌ Validation status: errors

Please follow instructions here which may help to resolve issue.

File Status Preview URL Details
❌Error Details

  • [Error: RuningBuildFailed] Some unexpected errors happened when running build, please open a ticket in https://aka.ms/SiteHelp and include the error report for our team to troubleshoot

For more details, please refer to the build report.

If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

For any questions, please:

@opbld33
Copy link
Copy Markdown

opbld33 commented Nov 12, 2021

Docs Build status updates of commit 5a3c9ec:

✅ Validation status: passed

File Status Preview URL Details
reference/7.0/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md ✅Succeeded View (powershell-7)
reference/7.1/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md ✅Succeeded View (powershell-7.1)
reference/7.2/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md ✅Succeeded View (powershell-7.2)

For more details, please refer to the build report.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

For any questions, please:

@yecril71pl
Copy link
Copy Markdown
Contributor Author

I made a minor edit. Can you copy that to the other versions and update the PR?

There is a problem in 5.1, it brings up 0x but never explains it. The entire section is missing. Should I copy that one too?

@sdwheeler sdwheeler changed the title [WIP] Additional hexadecimal indicators in strings Additional hexadecimal indicators in strings Nov 15, 2021
yecril71pl and others added 5 commits November 15, 2021 15:18
### Numeric type conversion

When strings are converted to numbers, additional hexadecimal format indicators are
supported. Those additional formats are not recognised as literals.

```powershell
[int] '0xF' -eq 0xF
[int] '&hF' -eq 0xF
[int] '#F' -eq 0xF
[int] '0b1111' -eq 0b1111
[int] '0b1111' -eq 15
```
### Numeric type conversion

When strings are converted to numbers, additional hexadecimal format indicators are
supported. Those additional formats are not recognised as literals.

```powershell
[int] '0xF' -eq 0xF
[int] '&hF' -eq 0xF
[int] '#F' -eq 0xF
[int] '0b1111' -eq 0b1111
[int] '0b1111' -eq 15
```
@opbld30
Copy link
Copy Markdown

opbld30 commented Nov 15, 2021

Docs Build status updates of commit f0e989b:

⚠️ Validation status: warnings

File Status Preview URL Details
reference/5.1/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md ⚠️Warning View (powershell-5.1) Details
reference/7.0/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md ✅Succeeded View (powershell-7)
reference/7.1/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md ✅Succeeded View (powershell-7.1)
reference/7.2/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md ✅Succeeded View (powershell-7.2)

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

  • Line 213, Column 2: [Warning: code-block-indented - See documentation] Indented code blocks aren't allowed. Use a Markdown code block surrounded by triple backticks (```).
  • Line 228, Column 1: [Warning: code-block-unclosed - See documentation] Unclosed code block. Code blocks must begin and end with triple backticks (```).

For more details, please refer to the build report.

If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

For any questions, please:

@opbld33
Copy link
Copy Markdown

opbld33 commented Nov 15, 2021

Docs Build status updates of commit b7da3c9:

⚠️ Validation status: warnings

File Status Preview URL Details
reference/5.1/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md ⚠️Warning View (powershell-5.1) Details
reference/7.0/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md ✅Succeeded View (powershell-7)
reference/7.1/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md ✅Succeeded View (powershell-7.1)
reference/7.2/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md ✅Succeeded View (powershell-7.2)

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

  • Line 213, Column 2: [Warning: code-block-indented - See documentation] Indented code blocks aren't allowed. Use a Markdown code block surrounded by triple backticks (```).
  • Line 228, Column 1: [Warning: code-block-unclosed - See documentation] Unclosed code block. Code blocks must begin and end with triple backticks (```).

For more details, please refer to the build report.

If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

For any questions, please:

@opbld31
Copy link
Copy Markdown

opbld31 commented Nov 15, 2021

Docs Build status updates of commit 998029f:

✅ Validation status: passed

File Status Preview URL Details
reference/5.1/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md ✅Succeeded View (powershell-5.1)
reference/7.0/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md ✅Succeeded View (powershell-7)
reference/7.1/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md ✅Succeeded View (powershell-7.1)
reference/7.2/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md ✅Succeeded View (powershell-7.2)

For more details, please refer to the build report.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

For any questions, please:

@sdwheeler sdwheeler merged commit 196c13f into MicrosoftDocs:staging Nov 15, 2021
@yecril71pl yecril71pl deleted the patch-6 branch November 15, 2021 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants