• hichris123's avatar
    Make NumberFormat use the ICU currency data, fix bug in NumberFormat · ddb5c2d9
    hichris123 authored
    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
    
    Review URL: https://codereview.chromium.org/1231613006
    
    Cr-Commit-Position: refs/heads/master@{#29734}
    ddb5c2d9
AUTHORS 3.53 KB