bits.Rem32() Function in Golang with Examples Last Updated : 28 Apr, 2020 Comments Improve Suggest changes Like Article Like Report Go language provides inbuilt support for bits to implement bit counting and manipulation functions for the predeclared unsigned integer types with the help of bits package. This package provides Rem32() function which is used to find the remainder of (h, l) divided by a. This function will panics if a == 0 (division by zero) and it doesn't panic if quotient overflow. To access Rem32() function you need to add a math/bits package in your program with the help of the import keyword. Syntax: func Rem32(h, l, a uint32) uint32 Parameters: This function takes three parameters of uint32 type, i.e., h, l, and a. Return Value: This function returns the remainder of (h, l) divided by a. Example 1: C // Golang program to illustrate bits.Rem32() Function package main import ( "fmt" "math/bits" ) // Main function func main() { // Finding the remainder // Using Rem32() function var h, l, a uint32 = 3, 5, 2 r := bits.Rem32(h, l, a) fmt.Println("Number 1:", h) fmt.Println("Number 2:", l) fmt.Println("Number 3:", a) fmt.Println("Remainder:", r) } Output: Number 1: 3 Number 2: 5 Number 3: 2 Remainder: 1 Example 2: C // Golang program to illustrate bits.Rem32() Function package main import ( "fmt" "math/bits" ) // Main function func main() { // Finding remainder // Using Rem32() function r := bits.Rem32(8, 9, 3) fmt.Println("Remainder:", r) } Output: Remainder: 2 Comment More infoAdvertise with us Next Article bits.Rem32() Function in Golang with Examples K Kirti_Mangal Follow Improve Article Tags : Go Language Golang-bits Similar Reads bits.Rem() Function in Golang with Examples Go language provides inbuilt support for bits to implement bit counting and manipulation functions for the predeclared unsigned integer types with the help of bits package. This package provides Rem() function which is used to find the remainder of (h, l) divided by a. This function will panics if a 2 min read bits.Rem64() Function in Golang with Examples Go language provides inbuilt support for bits to implement bit counting and manipulation functions for the predeclared unsigned integer types with the help of bits package. This package provides Rem64() function which is used to find the remainder of (h, l) divided by a. This function will panics if 2 min read bits.Len32() Function in Golang with Examples Go language provides inbuilt support for bits to implement bit counting and manipulation functions for the predeclared unsigned integer types with the help of bits package. This package provides Len32() function which is used to find the minimum number of bits required to represent a and the result 2 min read bits.Mul32() Function in Golang with Examples bits.Mul32() Function in Golang is used to find the 64-bit product of x and y. The execution time of this function does not depend on the inputs. To access this function, one needs to imports the math/bits package in the program. Syntax: func Mul32(x, y uint32) (hi, lo uint32) Parameters: This funct 2 min read bits.Len() Function in Golang with Examples Go language provides inbuilt support for bits to implement bit counting and manipulation functions for the predeclared unsigned integer types with the help of bits package. This package provides Len() function which is used to find the minimum number of bits required to represent a and the result is 2 min read Like