Files
llgo/cl/_testpy/pow/in.go
2025-04-03 16:26:11 +08:00

13 lines
221 B
Go

package main
import (
"github.com/goplus/lib/c"
"github.com/goplus/lib/py"
"github.com/goplus/lib/py/math"
)
func main() {
x := math.Pow(py.Float(2), py.Float(3))
c.Printf(c.Str("pow(2, 3) = %f\n"), x.Float64())
}