# Float values getting formated differently in EDI string

**URL:** <https://techcommunity.softwareag.com/t/float-values-getting-formated-differently-in-edi-string/108894>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [June 5, 2006, 7:43pm UTC](https://techcommunity.softwareag.com/t/float-values-getting-formated-differently-in-edi-string/108894 "2006-06-05T19:43:57Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![shantanu\_bhagat](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@shantanu\_bhagat](https://techcommunity.softwareag.com/u/shantanu_bhagat)\
**Post date:** [June 5, 2006, 7:43pm UTC](https://techcommunity.softwareag.com/t/float-values-getting-formated-differently-in-edi-string/108894/1 "2006-06-05T19:43:57Z")

</div>

Hello,  
I am creating a EDI document which has some float dollar amounts in the format (00.00). But when i execute the wm.b2b.edi:convertToString service all the float amounts in the document are converted to exponential format (xEy).  
Is there a way we can keep the amounts in the same format as passed?  
The ‘formatInfo’ field in the service is supposed to be used for that, but what is the format that this parameter takes?  
I tried passing in the complete EDI doctype to it, but it did not help?

Is there something i am doing wrong?

Thanks  
Shantanu

---

<div class="post-metadata">

**Author:** ![bhawesh.singh.428955](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@bhawesh.singh.428955](https://techcommunity.softwareag.com/u/bhawesh.singh.428955)\
**Post date:** [June 5, 2006, 8:15pm UTC](https://techcommunity.softwareag.com/t/float-values-getting-formated-differently-in-edi-string/108894/2 "2006-06-05T20:15:26Z")

</div>

Hi Shantanu,  
Whenever one posts a problem, one should always mention the IS/TN version and JVM version at a minimum. Though based on the type of problem, you will need to also specify what platform (Windows/Solaris…), What DB version etc…

So, which WmEDI version is you using? There are various fixes available for different WmEDI versions.

Please check advantage and its knowledge base, known issues, etc… to see if there is a fix avalable for your WmEDI version?

HTH,  
Bhawesh.

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [June 5, 2006, 8:42pm UTC](https://techcommunity.softwareag.com/t/float-values-getting-formated-differently-in-edi-string/108894/3 "2006-06-05T20:42:16Z")

</div>

Shantanu,

IS/EDI stores standard formattings applies in the builtin edi services in this config location …/packages/WmEDI/config/format file.

Unless you wM admin guys accept this change,you can change the default EDI format settings located above and this requires reload of WmEDI package along with some precautions.

Also please look into the Bhawesh mentioned suggestions aswell.

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![shantanu\_bhagat](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@shantanu\_bhagat](https://techcommunity.softwareag.com/u/shantanu_bhagat)\
**Post date:** [June 5, 2006, 9:28pm UTC](https://techcommunity.softwareag.com/t/float-values-getting-formated-differently-in-edi-string/108894/4 "2006-06-05T21:28:08Z")

</div>

RMG / Bhawesh

The settings in the …/packages/WmEDI/config/format file did the trick.  
Setting to be changed -

Thanks for the help.  
Shantanu

---

<div class="post-metadata">

**Author:** ![bhawesh.singh.428955](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@bhawesh.singh.428955](https://techcommunity.softwareag.com/u/bhawesh.singh.428955)\
**Post date:** [June 5, 2006, 10:23pm UTC](https://techcommunity.softwareag.com/t/float-values-getting-formated-differently-in-edi-string/108894/5 "2006-06-05T22:23:07Z")

</div>

Good to know it worked.

---

<div class="post-metadata">

**Author:** ![d.jena.35745](https://avatars.discourse-cdn.com/v4/letter/d/3da27b/32.png) [@d.jena.35745](https://techcommunity.softwareag.com/u/d.jena.35745)\
**Post date:** [August 1, 2006, 12:10pm UTC](https://techcommunity.softwareag.com/t/float-values-getting-formated-differently-in-edi-string/108894/6 "2006-08-01T12:10:25Z")

</div>

I have a issue over here. Can i define customiezed format service insted of changing the existing one?

I want to have one more format service along with the existing one.  
for example.

along with

I also want to assign this format service to a given field.

Thanks,  
Deepak.

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [August 1, 2006, 6:02pm UTC](https://techcommunity.softwareag.com/t/float-values-getting-formated-differently-in-edi-string/108894/7 "2006-08-01T18:02:49Z")

</div>

Deepak,

Yes you can create a customized format service and then assign it in the existing Dictionary/Schema for that particular field.Ofcourse you should also see if this change effects any of your other maps.

Some times there are cases where we need to update formattings in the EDI schemas esp for quantity/pricing fields etc…

Please see the ISFFSchemauserguide for more information.

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:05pm UTC](https://techcommunity.softwareag.com/t/float-values-getting-formated-differently-in-edi-string/108894/8 "2021-04-02T15:05:26Z")

</div>


