IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Problem w/numericFormat

    Posted Wed December 05, 2007 06:45 PM

    What gives? Having a problem with correctly formatting a number using numericFormat.

    Inputs:

    num: 000000614264896
    pattern: #,###,###,###,###.##

    Would expect output to be 6,142,648.96 but I get 614,264,896

    webM 6.5, Windows environment


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 2.  RE: Problem w/numericFormat

    Posted Wed December 05, 2007 07:43 PM

    numericFormat doesn’t address implied decimals. Nor does Java’s DecimalFormat. You’ll need to insert the decimal point yourself before calling numericFormat or you can use other techniques to get what you need.

    Side note: avoid using the pub.math services that have float or double in the name as they can introduce accuracy errors due to binary arithmetic (a global issue, not an IS or Java issue per se).


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 3.  RE: Problem w/numericFormat

    Posted Wed December 05, 2007 08:25 PM

    Thanks for the feedback - much appreciated.


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB