# big ints: setTwosCompIntLimit · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/f1b3a90ef6b29f1b43b43350a05ffe75ddf7ca2c)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: f1b3a90ef6b29f1b43b43350a05ffe75ddf7ca2c

Requested commit: f1b3a90ef6b29f1b43b43350a05ffe75ddf7ca2c

Commit: f1b3a90ef6b29f1b43b43350a05ffe75ddf7ca2c

Tree: a707c9ed79f6c7c10a5bb67081c9bb487c540e6c

Author: Robin Voetter

Committer: Robin Voetter

## Message

```
big ints: setTwosCompIntLimit

This function can be used to initialize a big integer to either the upper
or lower limit of a 2s-complement integer. Note that the result is still
in sign-magnitude representation, though in order to convert it into twos
complement all one has to do is take the absolute value.

```

## Parents

- [dc1f69854504c4dd7fbd18564c4a6811e3cc87e3](https://git.cafe/gitcafe/zig/commit/dc1f69854504c4dd7fbd18564c4a6811e3cc87e3?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/f1b3a90ef6b29f1b43b43350a05ffe75ddf7ca2c?format=markdown)
