[ 
https://issues.apache.org/jira/browse/ARROW-12744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17369415#comment-17369415
 ] 

Eduardo Ponce commented on ARROW-12744:
---------------------------------------

A draft PR is available that implements *round* function as a unary scalar 
function. It outputs float64 for integral inputs and matching type for 
floating-point inputs.

Rounding behavior is controlled via 2 option controls, a rounding mode 
(specifies displacement behavior) and a multiple (scale and precision).

Feedback is welcomed w.r.t. to implementation, rounding options and names, and 
documentation.

> [C++][Compute] 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
>            Assignee: Eduardo Ponce
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> 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)

Reply via email to