...

Source file src/math/big/roundingmode_string.go

Documentation: math/big

		 1  // Code generated by "stringer -type=RoundingMode"; DO NOT EDIT.
		 2  
		 3  package big
		 4  
		 5  import "strconv"
		 6  
		 7  const _RoundingMode_name = "ToNearestEvenToNearestAwayToZeroAwayFromZeroToNegativeInfToPositiveInf"
		 8  
		 9  var _RoundingMode_index = [...]uint8{0, 13, 26, 32, 44, 57, 70}
		10  
		11  func (i RoundingMode) String() string {
		12  	if i >= RoundingMode(len(_RoundingMode_index)-1) {
		13  		return "RoundingMode(" + strconv.FormatInt(int64(i), 10) + ")"
		14  	}
		15  	return _RoundingMode_name[_RoundingMode_index[i]:_RoundingMode_index[i+1]]
		16  }
		17  

View as plain text