Exponents

Exponents

Anonymous
Not applicable
270 Views
5 Replies
Message 1 of 6

Exponents

Anonymous
Not applicable
Dim x As Double
Dim y As Double
Dim z As Double

x = -3
y = 2
z = 0
Debug.Print (x ^ 2) + (y ^ 2) + (z ^ 2)
Debug.Print (-3# ^ 2) + (2# ^ 2) + (0# ^ 2)

First line prints 13. Second prints 5.

What am I missing here??
--
Bobby C. Jones
www.AcadX.com
0 Likes
271 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
Ron Allen hooked me up on the AUGI guilds. It's all about operator
precedents. Thanks anyway!
--
Bobby C. Jones
www.AcadX.com

"Bobby C. Jones" wrote in message
news:CF68995525784E611CEF2804A14B13FF@in.WebX.maYIadrTaRb...
> Dim x As Double
> Dim y As Double
> Dim z As Double
>
> x = -3
> y = 2
> z = 0
> Debug.Print (x ^ 2) + (y ^ 2) + (z ^ 2)
> Debug.Print (-3# ^ 2) + (2# ^ 2) + (0# ^ 2)
>
> First line prints 13. Second prints 5.
>
> What am I missing here??
> --
> Bobby C. Jones
> www.AcadX.com
>
>
0 Likes
Message 3 of 6

Anonymous
Not applicable
Presedents...it must be Friday
--
Bobby C. Jones
www.AcadX.com

"Bobby C. Jones" wrote in message
news:90C38E9FC13B500029ABB73D8EF0DBFF@in.WebX.maYIadrTaRb...
> Ron Allen hooked me up on the AUGI guilds. It's all about operator
> precedents. Thanks anyway!
> --
> Bobby C. Jones
> www.AcadX.com
>
> "Bobby C. Jones" wrote in message
> news:CF68995525784E611CEF2804A14B13FF@in.WebX.maYIadrTaRb...
> > Dim x As Double
> > Dim y As Double
> > Dim z As Double
> >
> > x = -3
> > y = 2
> > z = 0
> > Debug.Print (x ^ 2) + (y ^ 2) + (z ^ 2)
> > Debug.Print (-3# ^ 2) + (2# ^ 2) + (0# ^ 2)
> >
> > First line prints 13. Second prints 5.
> >
> > What am I missing here??
> > --
> > Bobby C. Jones
> > www.AcadX.com
> >
> >
>
>
0 Likes
Message 4 of 6

Anonymous
Not applicable
precedents or presidents? 🙂

--
Ed
--

"Bobby C. Jones" wrote in message
news:FD5ABCCAAA8C577ECB16896179A721CD@in.WebX.maYIadrTaRb...
> Presedents...it must be Friday
> --
> Bobby C. Jones
> www.AcadX.com
>
> "Bobby C. Jones" wrote in message
> news:90C38E9FC13B500029ABB73D8EF0DBFF@in.WebX.maYIadrTaRb...
> > Ron Allen hooked me up on the AUGI guilds. It's all about operator
> > precedents. Thanks anyway!
> > --
> > Bobby C. Jones
> > www.AcadX.com
> >
> > "Bobby C. Jones" wrote in message
> > news:CF68995525784E611CEF2804A14B13FF@in.WebX.maYIadrTaRb...
> > > Dim x As Double
> > > Dim y As Double
> > > Dim z As Double
> > >
> > > x = -3
> > > y = 2
> > > z = 0
> > > Debug.Print (x ^ 2) + (y ^ 2) + (z ^ 2)
> > > Debug.Print (-3# ^ 2) + (2# ^ 2) + (0# ^ 2)
> > >
> > > First line prints 13. Second prints 5.
> > >
> > > What am I missing here??
> > > --
> > > Bobby C. Jones
> > > www.AcadX.com
> > >
> > >
> >
> >
>
>
0 Likes
Message 5 of 6

Anonymous
Not applicable
presentsidists......

--
R. Robert Bell, MCSE
www.AcadX.com


"Ed Jobe" wrote in message
news:49B5B7B07DAB778C5B99A12CDFCEB5A4@in.WebX.maYIadrTaRb...
| precedents or presidents? 🙂
|
| --
| Ed
| --
|
| "Bobby C. Jones" wrote in message
| news:FD5ABCCAAA8C577ECB16896179A721CD@in.WebX.maYIadrTaRb...
| > Presedents...it must be Friday
| > --
0 Likes
Message 6 of 6

Anonymous
Not applicable
easy for you to say!
--
Bobby C. Jones
www.AcadX.com

"R. Robert Bell" wrote in message
news:6A4779F139CB62A9B6501F5D6F242CA0@in.WebX.maYIadrTaRb...
> presentsidists......
>
> --
> R. Robert Bell, MCSE
> www.AcadX.com
>
>
> "Ed Jobe" wrote in message
> news:49B5B7B07DAB778C5B99A12CDFCEB5A4@in.WebX.maYIadrTaRb...
> | precedents or presidents? 🙂
> |
> | --
> | Ed
> | --
> |
> | "Bobby C. Jones" wrote in message
> | news:FD5ABCCAAA8C577ECB16896179A721CD@in.WebX.maYIadrTaRb...
> | > Presedents...it must be Friday
> | > --
>
>
0 Likes