Issue #1 resolved

Formatting Decimal Numbers

Anonymous created an issue

BUG 1: When trying to format 5.1 to {0:0.00} it will return 5.00 instead of 5.10

BUG 2: When trying to format 5.1 to {0:0.##} it will return 5 instead of 5.1

INFO you can try this from your test with the changed values:

alert(String.format('@{a:##} and @{b:00}', { a: 5.2, b: 6.1 }));

Comments (1)

  1. Kamyar Inanloo repo owner

    The first bug is fixed: When starting the fractional part of decimal formatter with zero, the result is not correct. The second bug is not reproducible. please test again.

  2. Log in to comment