[progress Communities] [progress Openedge Abl] Forum Post: Re: Decimal Variable Force 2...

  • Thread starter Thread starter Simon L. Prinsloo
  • Start date Start date
Status
Not open for further replies.
S

Simon L. Prinsloo

Guest
Hi Ray, When you STRING a decimal, it normally converts to the minimum number of digits needed to display it. Your solution sounds like the correct one for what you need here. To be clear, you should use TRIM(STRING(myDecimal,"->>>,>>>,>>9.99")). Take care to rather supply more than less digits than you need as well as the sign, otherwise large numbers or negative values will cause run time errors. and if the XML does not have group separators you would most likely want to remove that from the format as well.

Continue reading...
 
Status
Not open for further replies.
Back
Top