Skip to content

Creates an am_uint64 object for storing unsigned 64-bit integers in Automerge documents. This preserves type fidelity when syncing with other language bindings (JavaScript BigInt, Python int, etc.).

Usage

am_uint64(value = 0)

Arguments

value

Numeric value (default 0). Values beyond 2^53 may lose precision.

Value

An am_uint64 object

Examples

doc <- am_create()
am_put(doc, AM_ROOT, "id", am_uint64(12345))