import "math/big" // Create two Big Ints a := big.NewInt(12341234123412341234) b := big.NewInt(56785678567856785678) // Add them together c := new(big.Int).Add(a, b) fmt.Println(c) Output: 69126912691269126912
import "math/big" // Create two Big Ints a := big.NewInt(12341234123412341234) b := big.NewInt(56785678567856785678) // Subtract b from a c := new(big.Int).Sub(a, b) fmt.Println(c) Output: -44444444444444444444
import "math/big" // Create two Big Ints a := big.NewInt(12341234123412341234) b := big.NewInt(56785678567856785678) // Multiply a and b c := new(big.Int).Mul(a, b) fmt.Println(c) Output: 700479598058568654534709780819996052
import "math/big" // Create two Big Ints a := big.NewInt(12341234123412341234) b := big.NewInt(56785678567856785678) // Divide a by b c := new(big.Int).Div(a, b) fmt.Println(c) Output: 2
import "math/big" // Create a Big Int a := big.NewInt(1234) // Raise a to the power of 5 b := new(big.Int).Exp(a, big.NewInt(5), nil) fmt.Println(b) Output: 18811651904Package Library: math/big.