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
+18.4k Golang : How to get hour, minute, second from time?
+25.4k Golang : Convert long hexadecimal with strconv.ParseUint example
+14.6k Golang : GUI with Qt and OpenCV to capture image from camera
+15.6k Chrome : ERR_INSECURE_RESPONSE and allow Chrome browser to load insecure content
+6.4k PHP : Proper way to get UTF-8 character or string length
+9.2k Golang : How to check if a string with spaces in between is numeric?
+7.5k Gogland : Single File versus Go Application Run Configurations
+11.4k Golang : Delay or limit HTTP requests example
+23.1k Golang : simulate tail -f or read last line from log file example
+16.8k Golang : read gzipped http response
+8.5k Golang : How to check if input string is a word?