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

  • Thread starter Thread starter rayherring
  • Start date Start date
Status
Not open for further replies.
R

rayherring

Guest
Is there any way to force a decimal variable to 2 decimal places? I'm trying to generate a hash of all necessary fields in a temp-table for a web-service request that I have to make, if I check the temp-table by doing 'write-xml' it shows all decimal fields as 2 decimal places, however when I pull those values out and stick them into a character delimited by | for each field it drops zeroes and decimal places off completely. 19.00 becomes 19 19.10 becomes 19.1 etc... Only way I have worked out so far is to convert the decimal to a string using the format ">,>>>,>>9.99" and then left-trim all the extra blank spaces off.

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