{filelink=11209}
import java.math.BigDecimal;
public class NegatBigDec
{
public static void main(String[] argv) throws Exception
{
BigDecimal val = new BigDecimal("642014.23");
// Ajouter le signe "-"
val = val.negate();
System.out.println (val);
}
}
A Voir sur le même Sujet:
- échelle bigdecimal
- convert session variable to bigdecimal java
- java passer bigdecimal négatif
- négatif en java signe -x
- java comparer valeur negative
- type de retour variable négative c#
- valeur négative java long
- java type bigdecimal est signé
- mettre une valeur négative fichier pdf
- bigdecimal negatif