package tezos-protocol-006-PsCARTHA
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=7062cd57addd452852598a2214ade393130efa087b99068d53713bdf912b3680
sha512=08e4091144a03ce3c107fb91a66501bd8b65ca3278917c455a2eaac6df3e108ade63f6ab8340a4bb152d60f404326e464d0ec95d26cafe8e82f870465d24a5fc
doc/tezos-protocol-006-PsCARTHA.raw/Tezos_raw_protocol_006_PsCARTHA/Alpha_context/Script_int/index.html
Module Alpha_context.Script_intSource
The types for arbitraty precision integers in Michelson. The type variable 't is always n or z, n num and z num are incompatible.
This is internally a Z.t. This module mostly adds signedness preservation guarantees.
Flag for natural numbers.
Flag for relative numbers.
Conversion from an OCaml string. Returns None in case of an invalid notation. Supports + and - sign modifiers, and 0x, 0o and 0b base modifiers.
Conversion from a Zarith integer (Z.t).
Conversion to a Zarith integer (Z.t).
Euclidean division between naturals. ediv_n n d returns None if divisor is zero, or Some (q, r) where n = d * q + r and [0 <= r < d] otherwise.
Sign agnostic addition. Use add_n when working with naturals to preserve the sign.
Sign agnostic subtraction. Use sub_n when working with naturals to preserve the sign.
Sign agnostic multiplication. Use mul_n when working with naturals to preserve the sign.
Sign agnostic euclidean division. ediv n d returns None if divisor is zero, or Some (q, r) where n = d * q + r and [0 <= r < |d|] otherwise. Use ediv_n when working with naturals to preserve the sign.
Reverses each bit in the representation of the number. Also applies to the sign.
Shifts the natural to the left of a number of bits between 0 and 256. Returns None if the amount is too high.
Shifts the natural to the right of a number of bits between 0 and 256. Returns None if the amount is too high.
Shifts the number to the left of a number of bits between 0 and 256. Returns None if the amount is too high.
Shifts the number to the right of a number of bits between 0 and 256. Returns None if the amount is too high.