bits not
for bits> bits not {flags}
--signed, -s
: always treat input number as a signed number--number-bytes, -n {string}
: the size of unsigned number in bytes, it can be 1, 2, 4, 8, autoinput | output |
---|---|
int | int |
list<int> | list<int> |
Apply logical negation to a list of numbers
> [432] |bits not
╭───┬─────────────────╮
│0│140737488355323│
│1│140737488355324│
│2│140737488355325│
╰───┴─────────────────╯
Apply logical negation to a list of numbers, treat input as 2 bytes number
> [432] |bits not-n'2'
╭───┬───────╮
│0│65531│
│1│65532│
│2│65533│
╰───┴───────╯
Apply logical negation to a list of numbers, treat input as signed number
> [432] |bits not-s
╭───┬────╮
│0│-5│
│1│-4│
│2│-3│
╰───┴────╯
Tips: Command bits not
was not included in the official binaries by default, you have to build it with --features=extra
flag
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/bits_not.html