View previous topic :: View next topic
|
Author |
Message |
kanna n
New User
Joined: 04 Oct 2007 Posts: 12 Location: pune
|
|
|
|
Hi,
i am reading a report using rexx and getting certain values onto some variables.
but values are present as 1,960(commas between numbers).
so when i do any arthematic operations on thet values getting error as 'Bad arithmetic conversion'.
is there any way to convert those into numeric values in rexx?
ex: i want to convert 1,960 as 1960(without commas and should be numeric value).
please post your valuable suggestions, thanks. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
Code: |
space(translate("1,234,567"," ",","),0) |
|
|
Back to top |
|
|
kanna n
New User
Joined: 04 Oct 2007 Posts: 12 Location: pune
|
|
|
|
Hello Enrico,
Thanks a lot, it worked very well.
Regards |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
SPACE and TRANSLATE are a few of of those key REXX functions along with PARSE. You should learn them well as you will use them a lot. |
|
Back to top |
|
|
|