figbus/elm-urbit-api/4.0.0

NOTE: the latest version is 4.0.1

Urbit.Encoding.Atom

type Atom

The most basic Urbit data type. Represents any non-negative integer of any size.

See Urbit.Encoding.Phonemic for converting to/from planet names (i.e. ~sampel-palnet).

fromInt : Int -> Maybe Atom

Creates an atom from an Int, failing for negative numbers.

fromBigInt : BigInt -> Maybe Atom

Creates an atom from a BigInt, failing for negative numbers.

toBigInt : Atom -> BigInt

Converts an atom into a BigInt.