Standard library / math/big

big.RoundingMode

Selects how a Float rounds inexact operations. Expected stdout: 'ToNearestEven\n'.

Formal Syntax & Structure

go syntaxgo
type RoundingMode byte

Working Example

Example Snippetgo
package main
import (  "fmt"  "math/big")
func main() {  var m big.RoundingMode = big.ToNearestEven  fmt.Println(m)}
Go Reference