1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Exponents...

Discussion in 'Programming' started by BACON., Dec 30, 2001.

  1. BACON.

    BACON. New Member

    Joined:
    Mar 29, 2001
    Messages:
    21
    Likes Received:
    0
    Does UnrealScript have any built-in support for calculating exponents? I know I can write my own function to do it, but I'd rather use built-in functions and operators if there are any. I looked through the Object class and didn't see anything.
     
  2. Papapishu

    Papapishu 我是康

    Joined:
    Jun 18, 2001
    Messages:
    2,043
    Likes Received:
    0
    what's that?
     
  3. Mychaeel

    Mychaeel New Member

    Joined:
    Oct 3, 2001
    Messages:
    3,830
    Likes Received:
    0
    From the Object class:
    Code:
    native(170) static final operator(12) float ** ( float A, float B );
    native(191) static final function float Exp ( float A );
    Is that what you're looking for?
     
  4. BACON.

    BACON. New Member

    Joined:
    Mar 29, 2001
    Messages:
    21
    Likes Received:
    0
    See...

    ...now I'm all embarrassed. They had to hide it below all that trigonometry stuff so that someone looking at it quickly won't see it. Thanks, though. The mystery comes to an end.

    Just to clarify, what does the second one do? Does that return 10^A?
     
  5. usaar33

    usaar33 Un1337

    Joined:
    Mar 25, 2000
    Messages:
    808
    Likes Received:
    0
    Re: See...

    e^A


    But do note that UT can only do natural log.

    But if you are clever, you can use that to do any base.
     

Share This Page