Skip to content

JavaScript: provide a standard way of creating longs from a number #4260

@fasterthanlime

Description

@fasterthanlime

Like I pointed out in #4232 (comment) - using createLong from javascript is currently error-prone.

I suggest adding another way to create a long from a javascript number, shipping one of the algorithms linked in the SO thread in my original comment, so that there's less risk of user error.

As to not break backwards compatibility, the original createLong should probably remain there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions