[
https://issues.apache.org/jira/browse/ARROW-12744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17344671#comment-17344671
]
Joris Van den Bossche commented on ARROW-12744:
-----------------------------------------------
For the midpoint values, [Python's
round()|https://docs.python.org/3/library/functions.html#round] and numpy use
the "round half to nearest even value" approach
(https://en.wikipedia.org/wiki/Rounding#Round_half_to_even).
> [C++] Add rounding kernel
> -------------------------
>
> Key: ARROW-12744
> URL: https://issues.apache.org/jira/browse/ARROW-12744
> Project: Apache Arrow
> Issue Type: Improvement
> Components: C++
> Reporter: Ian Cook
> Priority: Major
>
> Kernel to round an array of floating point numbers. Should return an array of
> the same type as the input. Should have an option to control how many digits
> after the decimal point (default value 0 meaning round to the nearest
> integer).
> Midpoint values (e.g. 0.5 rounded to nearest integer) should round away from
> zero (up for positive numbers, down for negative numbers).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)