This is an automated email from the ASF dual-hosted git repository.

mcasters 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 7c6679b915 Enhance calculator documentation with division warning 
(#6149)
7c6679b915 is described below

commit 7c6679b915e866d4af48ba9955b248a303f4d3ff
Author: max <[email protected]>
AuthorDate: Tue Dec 16 19:33:10 2025 +0100

    Enhance calculator documentation with division warning (#6149)
    
    Added a warning about division by zero when using Integer and Number types.
---
 .../modules/ROOT/pages/pipeline/transforms/calculator.adoc            | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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 ff2a50ab1b..caa6125ebe 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
@@ -77,7 +77,9 @@ The table below lists the supported calculations in the 
`Calculator` transform:
 |A + B|ADD|A plus B.
 |A - B|SUBTRACT|A minus B.
 |A * B|MULTIPLY|A multiplied by B.
-|A / B|DIVIDE|A divided by B.
+|A / B|DIVIDE|A divided by B. +
+ +
+Beware: If A is an Integer and B a Number, it will automatically convert B to 
an Integer as well. This can lead to division by zero errors if B is less than 
1.0 as it will be converted to 0
 |A * A|SQUARE|The square of A.
 |SQRT( A )|SQUARE_ROOT|The square root of A.
 |100 * A / B|PERCENT_1|Percentage of A in B.

Reply via email to