A Python long object. That is, an instance of int.
8.5. PyInt
Creates a Python integer from a Lean integer.
Returns the integer value of self as a Lean Int.
Creates a Python integer from a nonnegative Lean integer.
Returns the integer value of self as a Lean Nat.
If self is negative, returns none.
Creates a Python integer from a bounded, nonnegative Lean integer.
Returns the integer value of self as a Lean Fin.
If self is negative or at least n, returns none.
Creates a Python integer from a native signed word.
Returns the integer value of self as a native signed word.
If self is out of range, returns none.
Creates a Python integer from a native unsigned word.
Returns the integer value of self as a native unsigned word.
If self is out of range, returns none.
Creates a Python integer from a native 64-bit signed integer.
Returns the integer value of self as a native 64-bit signed integer.
If self is out of range, returns none.
Creates a Python integer from a native 64-bit unsigned integer.
Returns the integer value of self as a native 64-bit unsigned integer.
If self is out of range, returns none.
Creates a Python integer from a native 32-bit signed integer.
Returns the integer value of self as a native 32-bit signed integer.
If self is out of range, returns none.
Creates a Python integer from a native 32-bit unsigned integer.
Returns the integer value of self as a native 32-bit unsigned integer.
If self is out of range, returns none.
Creates a Python integer from a native 16-bit signed integer.
Returns the integer value of self as a native 16-bit signed integer.
If self is out of range, returns none.
Creates a Python integer from a native 16-bit unsigned integer.
Returns the integer value of self as a native 16-bit unsigned integer.
If self is out of range, returns none.
Creates a Python integer from a native 8-bit signed integer (i.e., a byte).
Returns the integer value of self as a native 8-bit signed integer.
If self is out of range, returns none.
Creates a Python integer from a native 8-bit unsigned integer (i.e., a byte).
Returns the integer value of self as a native 8-bit unsigned integer.
If self is out of range, returns none.