Table of Contents

math package

What is it?

`math` is Go’s standard library package for basic mathematical constants and functions (mostly for `float64`).

What is it used for?

Examples

r := 2.0
area := math.Pi * r * r      // circle area
root := math.Sqrt(9)         // 3

Common items

Notes

Hard words (English)