Standard library / math
math.Log10()
Base-ten logarithm. Expected stdout: '3\n'.
Formal Syntax & Structure
go syntaxgo
func Log10(x float64) float64Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| x | float64 | First input operand (or sole input if unary). |
Return Value
float64
Base-ten logarithm.
Working Example
Example Snippetgo
package main
import ( "fmt" "math")
func main() { fmt.Println(math.Log10(1000))}