On Tue, Nov 20, 2012 at 12:54 PM, lb <[email protected]> wrote: > Hy all, > is tenere any way to handle numbers represented with implied decimals? > > > I mean, 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 = 7, length = 5, precision = 2, sign = true, > implied-decimal-separator = true) > private BigDecimal amount; > > The string "-1234" maps to -12.34 in Java. > > > If a solution does not exists I may start to work on it, if there is a > little interest of course. >
This is currently not support. We love contributions http://camel.apache.org/contributing.html > Thx > > > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/camel-bindy-Handle-implied-decimal-field-tp5723003.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: [email protected] Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
