View previous topic :: View next topic
|
Author |
Message |
mathiprakash
New User
Joined: 29 Apr 2005 Posts: 14 Location: Pune, India.
|
|
|
|
Hi,
Is there any power of operator in COBOL? |
|
Back to top |
|
|
radhakrishnan82
Active User
Joined: 31 Mar 2005 Posts: 435 Location: chennai, India
|
|
|
|
As for I knew,power of operator is in 'C' but not in COBOL. |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Quote: |
,power of operator |
Means what....I didnt get.....Do you mean Operator for power....
Regards,
Priyesh. |
|
Back to top |
|
|
radhakrishnan82
Active User
Joined: 31 Mar 2005 Posts: 435 Location: chennai, India
|
|
|
|
a to the power of b. |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Hi mathiprakash/radhakrishnan82,
Is not **?
COMPUTE C = 4 ** 3.
DISPLAY C.
You shall get 64.
Regards,
Priyesh. |
|
Back to top |
|
|
radhakrishnan82
Active User
Joined: 31 Mar 2005 Posts: 435 Location: chennai, India
|
|
|
|
Priyesh,
I tried but its not working at my end.I don't know whether its upto the compiler limit set.So I think power of operator works in cobol too.But i can't use it.Let me check with my admin.
Power of operator is **.
Muthu,
can u confirm whether you mean such operation for power of operator. |
|
Back to top |
|
|
Rupesh.Kothari
Member of the Month
Joined: 27 Apr 2005 Posts: 463
|
|
|
|
Hi,
The compute and Power operator (**) is working for me.
Thansk & regards
Rupesh |
|
Back to top |
|
|
mathiprakash
New User
Joined: 29 Apr 2005 Posts: 14 Location: Pune, India.
|
|
|
|
Hi
Its(the ** operator) working for me.
Thanks to
Priyeshr
Radhakrishnan
Rupesh
Regards,
Matty |
|
Back to top |
|
|
|