AccessUser22
Technical User
Hi,
I'm trying to create a function that raises a number to a power of 2. So like 6 squared is 36. However for some reason when I run it it gives me 4 as an answer. This is the syntax I have for the actual computation
SET @Result = (@Variable ^ 2)
Even when I remove @Variable and replace it with a 6 I'm getting 4 as an answer. Where am I going wrong? I know it's probably something silly. I've been playing around with it for a while now. Thanks in advance.
I'm trying to create a function that raises a number to a power of 2. So like 6 squared is 36. However for some reason when I run it it gives me 4 as an answer. This is the syntax I have for the actual computation
SET @Result = (@Variable ^ 2)
Even when I remove @Variable and replace it with a 6 I'm getting 4 as an answer. Where am I going wrong? I know it's probably something silly. I've been playing around with it for a while now. Thanks in advance.