Skip to content

Commit

Permalink
[#5939] Added rounding error disclaimer
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaseder committed Sep 20, 2018
1 parent 97d652e commit 4eab720
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jOOQ/src/main/java/org/jooq/impl/DSL.java
Expand Up @@ -17367,6 +17367,9 @@ public static AggregateFunction<BigDecimal> sumDistinct(Field<? extends Number>
* emulates this using <code>exp(sum(log(arg)))</code> for strictly positive
* numbers, and does some additional handling for zero and negative numbers.
* <p>
* Note that this implementation may introduce rounding errors, even for
* integer multiplication.
* <p>
* More information here: <a href=
* "https://blog.jooq.org/2018/09/21/how-to-write-a-multiplication-aggregate-function-in-sql">https://blog.jooq.org/2018/09/21/how-to-write-a-multiplication-aggregate-function-in-sql</a>.
*/
Expand All @@ -17382,6 +17385,9 @@ public static AggregateFunction<BigDecimal> product(Field<? extends Number> fiel
* emulates this using <code>exp(sum(log(arg)))</code> for strictly positive
* numbers, and does some additional handling for zero and negative numbers.
* <p>
* Note that this implementation may introduce rounding errors, even for
* integer multiplication.
* <p>
* More information here: <a href=
* "https://blog.jooq.org/2018/09/21/how-to-write-a-multiplication-aggregate-function-in-sql">https://blog.jooq.org/2018/09/21/how-to-write-a-multiplication-aggregate-function-in-sql</a>.
*/
Expand Down

0 comments on commit 4eab720

Please sign in to comment.