Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation for binary literals #4143

Closed
1 of 8 tasks
sdwheeler opened this issue Apr 9, 2019 · 2 comments
Closed
1 of 8 tasks

Add documentation for binary literals #4143

sdwheeler opened this issue Apr 9, 2019 · 2 comments
Assignees
Labels
area-language Area - PowerShell syntax and keywords
Milestone

Comments

@sdwheeler
Copy link
Contributor

Issue Details

Also note that now that PowerShell/PowerShell#7993 has been merged, binary literals will need to be mentioned as well.

0b1011011 -> 91

This is related to issue #2965.

Version(s) of document impacted

  • Impacts 7.next document
  • Impacts 6 document
  • Impacts 5.1 document
  • Impacts 5.0 document
  • Impacts 4.0 document
  • Impacts 3.0 document

Reason(s) for not selecting all version of documents

  • The documented feature was introduced in selected version of PowerShell
  • This issue only shows up in selected version of the document
@sdwheeler sdwheeler added the area-language Area - PowerShell syntax and keywords label Apr 9, 2019
@sdwheeler sdwheeler added this to the 7.0.0 milestone Apr 9, 2019
@sdwheeler sdwheeler self-assigned this Apr 9, 2019
@vexx32
Copy link
Contributor

vexx32 commented Apr 11, 2019

@sdwheeler it will also need to be noted that that PR also introduced N suffix for native BigInteger, which works like the other type suffixes:

PS> [bigint]1000000000000000000000000000000
1000000000000000019884624838656

PS> [bigint]"1000000000000000000000000000000"
1000000000000000000000000000000

PS> 1000000000000000000000000000000n
1000000000000000000000000000000

PS> 1000000000000000000000000000000n -is [bigint]
True

This alleviates the problem mentioned in the docs introduced in #2965. 😄

@sdwheeler
Copy link
Contributor Author

@vexx32 Thanks. Good to know.

DCtheGeek pushed a commit that referenced this issue Apr 12, 2019
* Fix #4143 - add binary and bigint formats

* review feedback

* clarify hex literal length
sdwheeler added a commit that referenced this issue May 6, 2019
* Fix #4143 - add binary and bigint formats

* review feedback

* clarify hex literal length
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-language Area - PowerShell syntax and keywords
Projects
None yet
Development

No branches or pull requests

2 participants