Standard library / math

math.MinInt16

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

Formal Syntax & Structure

go syntaxgo
const MinInt16  = -1 << 15

Working Example

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