Reader small image

You're reading from  Mastering PowerShell Scripting - Fourth Edition

Product typeBook
Published inJun 2021
PublisherPackt
ISBN-139781800206540
Edition4th Edition
Right arrow
Author (1)
Chris Dent
Chris Dent
author image
Chris Dent

Chris Dent is an automation specialist with deep expertise in the PowerShell language. Chris is often found answering questions about PowerShell in both the UK and virtual PowerShell user groups. Chris has been developing in PowerShell since 2007 and has released several modules over the years.
Read more about Chris Dent

Right arrow

Binary operators

Binary operators are used to perform bitwise operations in PowerShell, that is, operations based around the bits that make up a numeric value. Each operator returns the numeric result of a bitwise operation.

All numeric values can be broken down into bytes and, in turn, bits.

Each byte is made up of 8 bits. Each bit in the byte has a value based on its position, highest value (or most significant) first. These bits can be combined to make up any number between 0 and 255.

The possible bit values for a byte can be represented as a table:

...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Mastering PowerShell Scripting - Fourth Edition
Published in: Jun 2021Publisher: PacktISBN-13: 9781800206540

Author (1)

author image
Chris Dent

Chris Dent is an automation specialist with deep expertise in the PowerShell language. Chris is often found answering questions about PowerShell in both the UK and virtual PowerShell user groups. Chris has been developing in PowerShell since 2007 and has released several modules over the years.
Read more about Chris Dent

Bit position

1

2

3

4

5

6

7