Learn R Programming

automerge (version 0.3.0)

am_uint64: Create an unsigned 64-bit integer value

Description

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)

Value

An am_uint64 object

Arguments

value

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

Examples

Run this code
doc <- am_create()
am_put(doc, AM_ROOT, "id", am_uint64(12345))
am_close(doc)

Run the code above in your browser using DataLab