|
|
| Author |
Message |
sridevi_g
New User
Joined: 15 Nov 2005 Posts: 4
|
|
|
|
Hi,
Can you please let me know how to find the entire length of a variable.
For example., Assume X is of 10 digit long, but it contains only 5 digits then the command LENGTH(X) gives 5. But i am interested in knowing the entire length of the variable (i.e., I am interested in the command which will give the value as 10).
Regards,
Sri |
|
| Back to top |
|
 |
References
|
Posted: Fri Nov 25, 2005 3:23 pm Post subject: Re: Length of a variable - REXX |
 |
|
|
 |
jon_s_rice
Active User
Joined: 24 Mar 2005 Posts: 106 Location: Douglasville, GA USA
|
|
|
|
| The function I beleve you are looking for is x = digits(). This will return the number of digits used in calculations. |
|
| Back to top |
|
 |
mak_tcs
Active User
Joined: 23 Nov 2005 Posts: 76 Location: Minneapolis, MN USA
|
|
|
|
Hi,
U shud have declared
numeric digits 5
x=12
now digits() will display value 5
Thanks,
Mani |
|
| Back to top |
|
 |
|
|