Exemple #1
0
func Sqrt(b float64) float64 {
	return float64(C.sqrt(C.double(b)))
}
Exemple #2
0
func Sqrt(p float32) (float32, error) {
	result, err := C.sqrt(C.double(p))
	return float32(result), err
}
Exemple #3
0
func main() {
	C.sayHi()
	fmt.Println("sqrt:", C.sqrt(4))
}