import ( "fmt" "math/big" ) func main() { x := big.NewRat(3, 5) // create a big.Rat with numerator 3 and denominator 5 denom := x.Denom() // returns the denominator of x fmt.Println(denom) // Output: 5 }In this example, we create a big.Rat with a numerator of 3 and a denominator of 5. We then use the Rat.Denom() method to retrieve the denominator of the rational number and store it in the variable denom. Finally, we print out the value of the denominator using fmt.Println().