Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 - tuiFormatNumber utility has rounding problems with float large numbers #9970

Closed
nsbarsukov opened this issue Dec 11, 2024 · 0 comments · Fixed by #9974
Closed

🐞 - tuiFormatNumber utility has rounding problems with float large numbers #9970

nsbarsukov opened this issue Dec 11, 2024 · 0 comments · Fixed by #9974
Assignees

Comments

@nsbarsukov
Copy link
Member

Reproduction url

https://taiga-ui.dev/components/input-number/API

Description

it('TODO', () => {
    expect(
        tuiFormatNumber(123456789012345.11, {
            precision: 2,
            thousandSeparator: '_',
        }),
    ).toBe('123_456_789_012_345.11');
});
Image

Taiga UI version

4.18.0

Browser Used

Chrome

OS Used

macOS

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

Successfully merging a pull request may close this issue.

1 participant