Skip to content

to_big(tostring(x)) does not equal x, unexpectedly #140

@english5040

Description

@english5040

(using Omeganum, have not checked the other implementation)

If x is a bignum 1000, to_string(x) = '1,000' (with a comma). bignums use number_format to print themselves.
'1,000' then fails to parse.

Since this behavior is different from plain Lua, this issue is prone to cause bugs.

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