BigDecimal: negate() : BigDecimal « java.math « Java by API
- Java by API
- java.math
- BigDecimal
BigDecimal: negate()
import java.math.BigDecimal;
public class Main {
public static void main(String[] argv) throws Exception {
BigDecimal bd1 = new BigDecimal("123456789.0123456890");
bd1 = bd1.negate();
}
}
Related examples in the same category