Java tutorial
import java.math.BigDecimal; public class Main { public static void main(String[] args) { BigDecimal bg1 = new BigDecimal("12.1234"); BigDecimal bg2 = bg1.negate(); System.out.println(bg2); } }