Originally posted by: vickey
Thanks Olly.
We can also do the same using either of the below logics.
1) FILLLEFT(WORD(FROMNUMBER(Value:ElemDecl UnitPrice:Seq:ElemDecl LineItem:Seq:ElemDecl PurchaseOrder Element:Global:Input),".",1),"0",2)
+ FILLRIGHT(WORD(FROMNUMBER(Value:ElemDecl UnitPrice:Seq:ElemDecl LineItem:Seq:ElemDecl PurchaseOrder Element:Global:Input),".",2),"0",5)
or
2) FILLLEFT(MID(FROMNUMBER(Value:ElemDecl UnitPrice:Seq:ElemDecl LineItem:Seq:ElemDecl PurchaseOrder Element:Global:Input),1,
FIND(".",FROMNUMBER(Value:ElemDecl UnitPrice:Seq:ElemDecl LineItem:Seq:ElemDecl PurchaseOrder Element:Global:Input))-1),"0",2)
+ FILLRIGHT(MID(FROMNUMBER(Value:ElemDecl UnitPrice:Seq:ElemDecl LineItem:Seq:ElemDecl PurchaseOrder Element:Global:Input),
FIND(".",FROMNUMBER(Value:ElemDecl UnitPrice:Seq:ElemDecl LineItem:Seq:ElemDecl PurchaseOrder Element:Global:Input))+1, SIZE(FROMNUMBER(Value:ElemDecl UnitPrice:Seq:ElemDecl LineItem:Seq:ElemDecl PurchaseOrder Element:Global:Input))),"0",5)
and the last is yours which is simple than the above two
3) FILLLEFT(NUMBERTOTEXT(Value:ElemDecl UnitPrice:Seq:ElemDecl LineItem:Seq:ElemDecl PurchaseOrder Element:Global:Input* 100000),"0",7)
But I want to do this using only FROMNUMBER functions, by using the second optional argument.
once agaian thanks for the reply.
-Vikash
#IBM-Websphere-Transformation-Extender#DataExchange#IBMSterlingTransformationExtender