Pow in Go

Posted by GoDoc
Public (Editable by Users)

Pow returns x**y, the base-x exponential of y.

Go
Edit
package main

import (
	"fmt"
	"math"
)

func main() {
	c := math.Pow(2, 3)
	fmt.Printf("%.1f", c)
}