davsclaus commented on code in PR #27988:
URL: https://github.com/apache/camel/pull/27988#discussion_r4301786142


##########
docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc:
##########
@@ -521,6 +521,14 @@ now resolves to no value, as it already did without a 
field, so its default valu
 (`{{?hashicorp:secret:missing#field}}`) applies. Before, without a default 
value, it failed with a
 `NullPointerException`.
 
+=== camel-bindy - a number field without precision keeps all its decimals when 
marshalled
+
+A `BigDecimal`, `Double` or `Float` field whose `@DataField` (or 
`@KeyValuePairField`) has no `precision` and no
+`pattern` was marshalled with at most three decimals, rounded: `1.23456` was 
written as `1.235` and `0.000123` as `0`.

Review Comment:
   Nit: "at most three decimals" only holds since 4.22 (CAMEL-24168). Up to 
4.21, the default `precision = 0` wrote these fields without any decimals. The 
4.22 guide only mentions `BigDecimal`, so the `Double`/`Float` change in 4.22 
was never documented. Readers upgrading from 4.18 LTS could use a short clause 
here, for example "(since Camel 4.22; before that, without any decimals)".



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to