Skip to content

How to solve the problem of large integer accuracy #106

@weijian-zhu

Description

@weijian-zhu
<script src="./msgpack.js"></script>
<script>
    const { encode, decode } = msgpack5()
    var buffer = encode({ num: 86699530287996692 })
    var data = decode(buffer)
    console.log(data) // => { num: 86699530287996690  }
</script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions