bonjour
comment fixer le nombre de decimal avec le formatage des pourcent
Code:
1
2 rs= java.text.NumberFormat.getPercentInstance(Locale.getDefault()).format(frs);
Version imprimable
bonjour
comment fixer le nombre de decimal avec le formatage des pourcent
Code:
1
2 rs= java.text.NumberFormat.getPercentInstance(Locale.getDefault()).format(frs);
Extrait de la javadoc de NumberFormat.Citation:
Code:
1
2
3
4
5
6 void setMaximumFractionDigits(int newValue) //Sets the maximum number of digits allowed in the fraction portion of a number. void setMaximumIntegerDigits(int newValue) //Sets the maximum number of digits allowed in the integer portion of a number. void setMinimumFractionDigits(int newValue) //Sets the minimum number of digits allowed in the fraction portion of a number.
ok merci
autant pour moi
Si c'est ok => :resolu: