Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Exponent Operator : What am I missing?

Author
Message
Dejunai
19
Years of Service
User Offline
Joined: 19th Jul 2005
Location: Mentally: Manhattan; Physically: LA -doh
Posted: 30th Jul 2005 21:14
I must be insane,
I cannot find an exponent operator...

Tho the help file says EXP(value) is
an exponent function...

How do you use an exponent function with
a single value...

b# = EXP(2)
print b#

Prints a float 7.3890...., I haven't tried to hard, but off the
top of my head there is NO single mathimatical function,
that turns 2 into 7...

Hoping I was just reading the HELP files incorrectly,
I did try...

b = 3 EXP(2)
print b

With some hope it would return 9 ( as in 3 to the power of 2 )
But that failed.

So two quick questions...
How do I raise a value by an exponent value?
And what the heck is the function EXP(value)?

Thanks in Advance...

================
-Dejunai
================
Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 30th Jul 2005 21:45
I believe that e^2 = 7.389. e is the base for natural logarithms - if you don't know what these are, you probably won't need them.
To find 3 squared, the operator is 3^2. However, this has bugs and it is better to use 3*3.

-Xol

Login to post a reply

Server time is: 2024-11-27 20:33:01
Your offset time is: 2024-11-27 20:33:01