Round Functoid in a Map

Home Page Forums BizTalk 2004 – BizTalk 2010 Round Functoid in a Map

Viewing 1 reply thread
  • Author
    Posts
    • #12284

      Hi Guys,

      I have a Round functoid in my Map. This round functoid has xs:decimal input parameter and 2 (for rounding off till 2 digits) and output is too xs:decimal. But When I executing this Map, its giving very wired output.
      foreg.. If input is 16.00000 then I m getting 00160 as output.

      Even I tried to call a C# function in a scripting function Even though output is same.

      Could any body explains this behaviour to me… Thanks a lot …

    • #12285

      Yeah even i tried with 16.0000.. But If i passed the value 16.1111 Its giving me proper value.. This problem I faced with only values that contain zeros(0) after decimal..

      Cheers

      • #12286

        I have not seen that before and I have used Round before in the past. But I was probably passing in an integer or unassigned data type.

        Have you tried passing your input value out to a node just to make sure you really are passing in 16.0000? Have you tried passing in an integer?

        Maybe the xs:decimal if formatting the data in an unexpected way,.

        Just a thought.

        • #12287

          Strange.

          Just must be something to do with the way the function works. I guess you could always pass it through another Functoid before hand to strip the end zeros. Kind of a pain though.

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.