Round-trip failure with certain unsigned int64 values
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- json
- Domain
- compilers
Research direction
Reproduce the behavior using the test.jsonnet example and inspect how numeric literals are represented and serialized. The issue names no implementation files or tests and does not define a target for changing Jsonnet's 64-bit-float number model, so the desired behavior would need clarification before work can be considered done.
Written by the indexing model from the issue text.
Description
Jsonnet produces surprising output for certain unsigned int64 values. For example, with this test.jsonnet:
{
a_uint: 18446744073709551615,
b_uint: 9223372036854775807
}
jsonnet test.jsonnet produces this output:
{
"a_uint": 18446744073709551616,
"b_uint": 9223372036854775808
}
Tagging Framework-R-D/phlex#243.
EDIT: Evidently this is because all numbers are 64-bit floats in Jsonnet.
- Dominant language
- Jsonnet
- Stars
- 7.6k
- Forks
- 475
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from google/jsonnet
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 3/5 1-2 days Newbie friendliness 78/100
-
std.format: wrong digits for %f/%d on large values; malformed output for non-integer * precision Open
Difficulty 4/5 3-5 days Newbie friendliness 52/100
-
Difficulty 5/5 Over a week Newbie friendliness 42/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
objectionary/eo#8869 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
EricSpencer00/Resilient#4824 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
objectionary/jeo-maven-plugin#1758 ·
-
generics
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
mlir
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
llvm/llvm-project#224908 · 1 comment ·