public void setMaximumFractionDigits ( int newValue ) { maximumFractionDigits = Math . max ( 0 , newValue ) ; if ( maximumFractionDigits < minimumFractionDigits ) { minimumFractionDigits = maximumFractionDigits ; } }
Sets the maximum number of digits allowed in the fraction portion of a number . maximumFractionDigits must be > = minimumFractionDigits . If the new value for maximumFractionDigits is less than the current value of minimumFractionDigits then minimumFractionDigits will also be set to the new value .