bonjour
comment fixer le nombre de decimal avec le formatage des pourcent
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 rs= java.text.NumberFormat.getPercentInstance(Locale.getDefault()).format(frs);
bonjour
comment fixer le nombre de decimal avec le formatage des pourcent
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 rs= java.text.NumberFormat.getPercentInstance(Locale.getDefault()).format(frs);
Extrait de la javadoc de NumberFormat.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
Partager