Skip to content

Commit

Permalink
improved comments for Quantize (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
yarco authored and ericlagergren committed Jul 14, 2019
1 parent cc8cbe2 commit d0a4357
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions big.go
Original file line number Diff line number Diff line change
Expand Up @@ -944,8 +944,8 @@ func (x *Big) Precision() int {
}

// Quantize sets z to the number equal in value and sign to z with the scale, n.
//
// Other decimal libraries may refer to Quantize as Truncate.
// The rounding of z is performed according to the rounding mode set in z.Context.RoundingMode.
// In order to perform truncation, set z.Context.RoundingMode to ToZero.
func (z *Big) Quantize(n int) *Big { return z.Context.Quantize(z, n) }

// Quo sets z to x / y and returns z.
Expand Down

0 comments on commit d0a4357

Please sign in to comment.