Golang builtin.imag() function example
package builtin
The imag built-in function returns the imaginary part of the input complex number
Golang builtin.imag() function usage example
package main
import "fmt"
func main() {
fmt.Println(imag(100 + 8i))
}
Output :
8
Reference :
Advertisement
Something interesting
Tutorials
+11k Golang : Generate random elements without repetition or duplicate
+13.2k Golang : Skip blank/empty lines in CSV file and trim whitespaces example
+11.5k Use systeminfo to find out installed Windows Hotfix(s) or updates
+21.8k Golang : Upload big file (larger than 100MB) to AWS S3 with multipart upload
+17.6k Golang : delete and modify XML file content
+15.6k Golang : Validate hostname
+9.7k PHP : Get coordinates latitude/longitude from string
+19.5k Golang : How to Set or Add Header http.ResponseWriter?
+5.3k Swift : Convert string array to array example
+5.3k Python : Convert(cast) string to bytes example
+19.9k Golang : Accept input from user with fmt.Scanf skipped white spaces and how to fix it