Clarity theorytheory 0/50 · 0%
Data Types · easy

6. Integers: uint and int

Unsigned and signed 128-bit integers.

Clarity supports 128-bit integers. `uint` is for non-negative numbers, while `int` is for signed numbers. Arithmetic operators like `+`, `-`, `*`, `/` work with them.

clarity
(let ((u1 u100) (i1 -50))
  (+ u1 u50))

Check your understanding

  1. 1. What is the bit size of integers in Clarity?