View previous topic :: View next topic
|
Author |
Message |
amitava Warnings : 1 Active User
Joined: 30 Oct 2005 Posts: 186 Location: India
|
|
|
|
Hi All,
Currently I am working in a FOCUS migration project. Here in a FOCUS program, I have found a statement like the following -
test/I2 = 2;
Var2 = Var1 ** test;
- My question is what this numeric operator - '**' stands for? While taking the output of this FOCUS program we are getting like following -
Code: |
Var1 Test Var2
----- ---- -----
1 2 1
2 2 3
3 2 8
4 2 15
5 2 24
6 2 35
7 2 48
8 2 64
:
:
:
113 2 112
|
Please help me out... |
|
Back to top |
|
|
shrivatsa Warnings : 1 Active User
Joined: 17 Mar 2006 Posts: 174 Location: Bangalore
|
|
|
|
In FOCUS it Stands as other programs I mean to say is its a power operator.
But I am wondering how you are getting the output like that. That is also till 7 you got everytime 1 less than the squared one and at 8 you got the 64.
Strange!!!!
Thanks
Shri |
|
Back to top |
|
|
raghunathns
Active User
Joined: 08 Dec 2005 Posts: 127 Location: rochester
|
|
|
|
its an exponentiation.
it works with double pression. so remove i2 and try
var1 = 3;
test = 2;
var2 = var1 ** test; |
|
Back to top |
|
|
raghunathns
Active User
Joined: 08 Dec 2005 Posts: 127 Location: rochester
|
|
|
|
use this code to convert var2
VAR3/A2 = FTOA(VAR2,'(F2)', VAR3);
example
16.00 to 16
. |
|
Back to top |
|
|
|