DescriptionMake NumberFormat use the ICU currency data, fix bug in NumberFormat
NumberFormat previously just used a min of 0 digits after the decimal and a max of 3. This CL changes it so that we use the ICU currency data, and set the min and max to the number of numbers after the decimal point for each currency.
This CL also fixes a small bug where if the minimum fraction digits is above 3 but the maximum fraction digits isn't set, then it returns with only three numbers after the decimal point.
BUG=435465, 473104, 304722
LOG=Y
Committed: https://crrev.com/ddb5c2d999c5ee6e31c4a9599bb3ddb293cc3f49
Cr-Commit-Position: refs/heads/master@{#29734}
Patch Set 1 #Patch Set 2 : Add self to AUTHORS #Patch Set 3 : Remove commment #Patch Set 4 : Add in fix for bug 304722 #Patch Set 5 : Add tests and fix crash #Patch Set 6 : Fix license #Patch Set 7 : Fix presubmit error #
Total comments: 2
Patch Set 8 : Use short form of license #
Total comments: 1
Messages
Total messages: 19 (5 generated)
|