Files
moxa/_test/imag0.go
2020-04-30 10:32:04 +02:00

15 lines
171 B
Go

package main
import "fmt"
func f(c complex128) interface{} { return imag(c) }
func main() {
c := complex(3, 2)
a := f(c)
fmt.Println(a.(float64))
}
// Output:
// 2