Noramlly I’d say write it using FLOW. But in this case you can leverage the BigDecimal class to do this for you. Take a look at the moveDecimalLeft method.
Structure the service this way:
name: movePointLeft
inputs: value, n (both as strings)
outputs: value (a string)
Get value and n from the pipeline using IDataUtil methods (getString and getInt respectively)
Create a new BigDecimal object, passing value to the constructor
Call the BigDecimal.movePointLeft method, passing n
Call the BigDecimal.toString method and put the returned string in the var named value in the pipeline
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services