# big_integer.from_bytes · Rell standard library · Chromia Docs (concept)

> pure static function from_ bytes(value: byte_array ): big_integer Create a big_integer from a byte array. The byte array is interpreted with the first bit 

Source: https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/big_integer/from_bytes/

FUNCTION

# big\_integer.from\_bytes

```signature
pure static function from_bytes(value: byte_array): big_integer
```

Create a `big_integer` from a byte array.

The byte array is interpreted with the first bit representing the sign (two's complement), and for
subsequent bits, more significant bits are on the left and less significant bits are on the left
(big-endian).

Inverse of `big_integer.to_bytes()`.

**Parameters**

* **value** — the byte array to convert

**Throws**

* `exception` — if the byte array is empty

Since 0.12.0

[View this page on docs.chromia.com](https://docs.chromia.com/pages/rell-stdlib/-rell%20-system%20-library/%5Broot%5D/big_integer/from_bytes.html)Generated API reference, mirrored from the live docs
