Files
llgo/cl/_testpy/pow/in.go

13 lines
221 B
Go
Raw Normal View History

2024-05-15 08:44:00 +08:00
package main
import (
2025-04-03 15:52:18 +08:00
"github.com/goplus/lib/c"
"github.com/goplus/lib/py"
"github.com/goplus/lib/py/math"
2024-05-15 08:44:00 +08:00
)
func main() {
x := math.Pow(py.Float(2), py.Float(3))
c.Printf(c.Str("pow(2, 3) = %f\n"), x.Float64())
}