Skip to content

format result incorrect while digits are mass #762

@lushevol

Description

@lushevol

numbro("123456789012345678901234567890").format({ mantissa: 2, optionalMantissa: true }) expect to return "123456789012345678901234567890" but returns "123456789012345680000000000000"

It can be reproduced on numbro playground,

image
check with link below
https://numbrojs.com/try-me.html?lang=en-US&value=123456789012345678901234567890&format=%7B%22mantissa%22%3A2%2C%22optionalMantissa%22%3Atrue%7D

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