Using the decimal pipe to format numbers in an input field
value| number:'0.0-6': 'en-us'
When working with numbers containing more than 10 digits, it displays as follows:
For 11111111111.123456
, it formats to 11,111,111,111.123455
For 111111111111.123456
, it formats to 111,111,111,111.12345
For 1111111111111.123456
, it formats to 1,111,111,111,111.1234
For 11111111111111.123456
, it formats to 11,111,111,111,111.123
The behavior seems consistent regardless of input field width.
Has anyone encountered this issue before? Any suggested workarounds?
I also tested with 11999999999999.999999
and it displayed as 12,000,000,000,000