Log10 in Go

Posted by GoDoc
Public (Editable by Users)

Log10 returns the decimal logarithm of x. The special cases are the same as for Log.

Go
Edit
package main

import (
	"fmt"
	"math"
)

func main() {
	fmt.Printf("%.1f", math.Log10(100))
}