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
+7.3k Golang : How to iterate a slice without using for loop?
+11.9k Golang : Convert decimal number(integer) to IPv4 address
+21.8k Golang : Upload big file (larger than 100MB) to AWS S3 with multipart upload
+11.6k Golang : Display a text file line by line with line number example
+19.1k Golang : When to use public and private identifier(variable) and how to make the identifier public or private?
+14.6k Golang : Execute function at intervals or after some delay
+7.4k Golang : Word limiter example
+14k Golang : Human readable time elapsed format such as 5 days ago
+9.4k Facebook : Getting the friends list with PHP return JSON format
+14.4k Golang : Recombine chunked files example
+6.4k PHP : Proper way to get UTF-8 character or string length
+5.9k AWS S3 : Prevent Hotlinking policy