Skip to content

export uint64 to string #2

Description

@bagaking

test case:

|uint64|
|arg_name|
|9223372036854775807|

current result

the uint64 value 9223372036854775807 will be exported as a number 9223372036854775807

{ 
    "arg_name": 9223372036854775807
}

but this may cause some precision problems (in JS)

solution

for a numeric type that may be greater than a security integer, export its value as a string

{ 
    "arg_name": "9223372036854775807",
}

for now

before this problem is solved, avoid using large number type and use tag 'string'.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions