Pow10 in Go

Posted by GoDoc
Public (Editable by Users)

Pow10 returns 10**n, the base-10 exponential of n.

Go
Edit
package main

import (
	"fmt"
	"math"
)

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