Java tutorial
import java.math.BigInteger; public class Main { public static void main(String[] args) { BigInteger bi1 = new BigInteger("-100"); BigInteger bi2 = new BigInteger("3"); // perform remainder operation on bi1 using bi2 BigInteger bi3 = bi1.remainder(bi2); System.out.println(bi3); } }