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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Math: Finding Square Root

    Posted 01/07/09 10:36 PM

    Hello everyone.

    Well, this is something that I haven’t had to do before. I searched through all the forums here for the word “square root”. Didn’t find anything. Also searched WM Advantage: nothing as well.

    Has anyone in here had to do a math formula to figure out the square root for a number? For example, I was told (because I stink at Math) that the square root of 144 is 12 but that was done in MS Excel. I have no clue how to make that happen in webMethods.

    I don’t see a service for this at all. Any tricks to making this happen? Is this going to require Java? If so, can anyone share their code?

    I really appreciate your help. This was the last hurdle I had in trying to complete this code no later than Friday.


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


  • 2.  RE: Math: Finding Square Root

    Posted 01/07/09 11:37 PM

    Create a Java service. Within, use java.lang.Math.sqrt to do the work (or another suitable class that you might add to your IS environment). Be careful about accuracy of the double data type. Floating point arithmetic can be inaccurate (there are other posts about this).


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