aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/csv/reader_test.go
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2017-09-03 21:46:51 +1000
committerRobert Griesemer <gri@golang.org>2017-10-24 22:33:09 +0000
commita5c44f3e3f722187c5438da8468963b2f0b629ac (patch)
tree398db60c86303c67c70c4d89c1d708ff57266fd4 /src/encoding/csv/reader_test.go
parentfcd32885dfd9f69d894f11e0802548071be5e326 (diff)
downloadgo-a5c44f3e3f722187c5438da8468963b2f0b629ac.tar.xz
math: add RoundToEven function
Rounding ties to even is statistically useful for some applications. This implementation completes IEEE float64 rounding mode support (in addition to Round, Ceil, Floor, Trunc). This function avoids subtle faults found in ad-hoc implementations, and is simple enough to be inlined by the compiler. Fixes #21748 Change-Id: I09415df2e42435f9e7dabe3bdc0148e9b9ebd609 Reviewed-on: https://go-review.googlesource.com/61211 Reviewed-by: Robert Griesemer <gri@golang.org> Run-TryBot: Robert Griesemer <gri@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/encoding/csv/reader_test.go')
0 files changed, 0 insertions, 0 deletions