Skip to content

Preserve precision of large (>2^53) body ids in JSON responses#187

Merged
jefferis merged 1 commit intomasterfrom
fix/int64-json-parsing
Apr 10, 2026
Merged

Preserve precision of large (>2^53) body ids in JSON responses#187
jefferis merged 1 commit intomasterfrom
fix/int64-json-parsing

Conversation

@jefferis
Copy link
Copy Markdown
Contributor

Use bigint_as_char=TRUE in neuprint_parse_json so that body ids exceeding the 53-bit mantissa of double-precision floats are returned as character strings rather than silently truncated. Downstream code (e.g. id2bit64) already handles character input correctly.

Use bigint_as_char=TRUE in neuprint_parse_json so that body ids
exceeding the 53-bit mantissa of double-precision floats are returned
as character strings rather than silently truncated. Downstream code
(e.g. id2bit64) already handles character input correctly.
@jefferis jefferis merged commit 15a4b6b into master Apr 10, 2026
7 of 8 checks passed
@jefferis jefferis deleted the fix/int64-json-parsing branch April 10, 2026 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant