[
https://issues.apache.org/jira/browse/CAMEL-5827?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13508878#comment-13508878
]
Claus Ibsen commented on CAMEL-5827:
------------------------------------
Lucas, yeah I think you found an issue.
With 2 as precision, it should be
10.00
eg using 2 digits for precious.
If this bug is also present in current code, then feel free to log a 2nd JIRA.
Then we can apply this patch. And you are welcome to work on a patch for that
other problem.
> camel-bindy - Handle implied-decimal values
> -------------------------------------------
>
> Key: CAMEL-5827
> URL: https://issues.apache.org/jira/browse/CAMEL-5827
> Project: Camel
> Issue Type: New Feature
> Components: camel-bindy
> Reporter: Luca Burgazzoli
> Priority: Minor
> Fix For: 2.11.0
>
> Attachments: camel-bindy-implied.patch
>
>
> The communication with some legacy systems often relies on old protocols and
> formats not easy to change and among that you may have to deal with fixed
> lenght records on which decimal numbers are not represented with a decimal
> separator but the number of decimal places is defined by the protocol
> definition (e.g. COBOL copy-book).
> Example:
> @DataField(pos = 1, length = 5, precision = 2, implied-decimal-separator =
> true)
> private BigDecimal amount;
> The string "12345" maps to 123.45 in Java.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira