github.com/goplus/llgo@v0.8.3/cl/_testpy/pow/in.go (about)

     1  package main
     2  
     3  import (
     4  	"github.com/goplus/llgo/c"
     5  	"github.com/goplus/llgo/py"
     6  	"github.com/goplus/llgo/py/math"
     7  )
     8  
     9  func main() {
    10  	x := math.Pow(py.Float(2), py.Float(3))
    11  	c.Printf(c.Str("pow(2, 3) = %f\n"), x.Float64())
    12  }