You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2020/09/28 09:29:26 UTC
[GitHub] [arrow] praveenbingo commented on a change in pull request #8035: ARROW-9641: [C++][Gandiva] Implement round() for floating point and double floating point numbers
praveenbingo commented on a change in pull request #8035:
URL: https://github.com/apache/arrow/pull/8035#discussion_r495804184
##########
File path: cpp/src/gandiva/precompiled/extended_math_ops.cc
##########
@@ -111,6 +111,20 @@ LOG_WITH_BASE(float64, float64, float64)
POWER(float64, float64, float64)
+// round
+#define ROUND_DECIMAL(TYPE) \
+ FORCE_INLINE \
+ gdv_##TYPE round_##TYPE##_int32(gdv_##TYPE number, gdv_int32 precision) { \
Review comment:
should this be called output scale?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org