This is an automated email from the ASF dual-hosted git repository.
hansva pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hop.git
The following commit(s) were added to refs/heads/main by this push:
new c823fa0126 fix Calculator ROUND_2 description (#7954)
c823fa0126 is described below
commit c823fa0126601ebd68f410dceaadb338d7824c07
Author: Nicolas <[email protected]>
AuthorDate: Sat Aug 15 10:18:43 2026 +0200
fix Calculator ROUND_2 description (#7954)
---
.../modules/ROOT/pages/pipeline/transforms/calculator.adoc | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git
a/docs/hop-user-manual/modules/ROOT/pages/pipeline/transforms/calculator.adoc
b/docs/hop-user-manual/modules/ROOT/pages/pipeline/transforms/calculator.adoc
index dd7de1ac04..6021871c63 100644
---
a/docs/hop-user-manual/modules/ROOT/pages/pipeline/transforms/calculator.adoc
+++
b/docs/hop-user-manual/modules/ROOT/pages/pipeline/transforms/calculator.adoc
@@ -93,8 +93,10 @@ Beware: If A is an Integer and B a Number, it will
automatically convert B to an
The result is rounded to an Integer by adding 1/2, taking the floor of the
result, and casting the result to type int.
In other words, the result is equal to the value of the expression: floor (a +
0.5).
In case you need the rounding method "Round half to even", use the following
method ROUND( A, B ) with no decimals (B=0).
-|ROUND( A, B )|ROUND_2|Round A to the nearest even number with B decimals.
-The used rounding method is "Round half to even", it is also called unbiased
rounding, convergent rounding, statistician's rounding, Dutch rounding,
Gaussian rounding, odd-even rounding, bankers' rounding or broken rounding, and
is widely used in bookkeeping.
+|ROUND( A, B )|ROUND_2|Round A to the nearest number with B decimals.
+By default, the "Round half ceiling" method is used : when the digit to be
rounded falls exactly halfway between two values, rounding always occurs
towards the higher value.
+This behavior can be changed with -DROUND_2_MODE=ROUND_HALF_EVEN parameter,
which allows switching to "round half to even" rounding.
+This method is also called unbiased rounding, convergent rounding,
statistician's rounding, Dutch rounding, Gaussian rounding, odd-even rounding,
bankers' rounding or broken rounding, and is widely used in bookkeeping.
This is the default rounding mode used in IEEE 754 computing functions and
operators.
In Germany it is often called "Mathematisches Runden".
|STDROUND( A )|ROUND_STD_1|Round A to the nearest integer.