Standard library / math

math.MinInt32

Minimum representable int32 value; useful for bounds checks. Expected stdout: '-2147483648\n'.

Formal Syntax & Structure

go syntaxgo
const MinInt32  = -1 << 31

Working Example

Example Snippetgo
package main
import (  "fmt"  "math")
func main() {  fmt.Println(int32(math.MinInt32))}
Go Reference