You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hop.apache.org by "fpapon (via GitHub)" <gi...@apache.org> on 2026/08/14 09:34:18 UTC

[I] [Bug]: Difference between documentation and implementation in Calculator ROUND_2 default mode (hop)

fpapon opened a new issue, #7950:
URL: https://github.com/apache/hop/issues/7950

   ### Apache Hop version?
   
   2.17 and 2.18
   
   ### Java version?
   
   17
   
   ### Operating system
   
   Linux
   
   ### What happened?
   
   In the documentation of the ROUND(A,B) of the Calculator transform, we can see that the default round mode used is HALF_EVEN:
   https://hop.apache.org/manual/latest/pipeline/transforms/calculator.html
   But in the source code, the default used is Const.ROUND_HALF_CEILING: 
   https://github.com/apache/hop/blob/0d14622d73918027c1e4d59cc648d32010044d57/core/src/main/java/org/apache/hop/core/row/ValueDataUtil.java#L77
   
   As this default is set in the core module, do we want to update the source code or update the documentation?
   
   ### Issue Priority
   
   Priority: 2
   
   ### Issue Component
   
   Component: Transforms


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: Difference between documentation and implementation in Calculator ROUND_2 default mode (hop)

Posted by "hansva (via GitHub)" <gi...@apache.org>.
hansva closed issue #7950: [Bug]: Difference between documentation and implementation in Calculator ROUND_2 default mode
URL: https://github.com/apache/hop/issues/7950


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: Difference between documentation and implementation in Calculator ROUND_2 default mode (hop)

Posted by "fpapon (via GitHub)" <gi...@apache.org>.
fpapon commented on issue #7950:
URL: https://github.com/apache/hop/issues/7950#issuecomment-5291868426

   Ok I will provide a PR to update the doc


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: Difference between documentation and implementation in Calculator ROUND_2 default mode (hop)

Posted by "hansva (via GitHub)" <gi...@apache.org>.
hansva commented on issue #7950:
URL: https://github.com/apache/hop/issues/7950#issuecomment-5291855097

   I would update the docs then


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org