Standard library / math/big
big.RoundingMode.String()
Return a readable name for a Float rounding mode. Expected stdout: 'ToNearestEven\n'.
Formal Syntax & Structure
go syntaxgo
func (i RoundingMode) String() stringReturn Value
string
Returns the result described above; see the example for the observed behavior.
Working Example
Example Snippetgo
package main
import ( "fmt" "math/big")
func main() { fmt.Println(big.ToNearestEven.String())}