News UnrealEd Files Mods FragBU Liandri Archives
BeyondUnreal Forums

Go Back   BeyondUnreal Forums > Unreal Development > Coding

Reply
 
Thread Tools Display Modes
Old 30th Dec 2001, 10:52 AM   #1
BACON.
Registered User
 
BACON.'s Avatar
 
Join Date: Mar. 29th, 2001
Location: Chicago, Illinois
Posts: 21
Exponents...

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.
__________________


If I'm not wasting my time, I'm wasting my time...
BACON. is offline   Reply With Quote
Old 30th Dec 2001, 10:59 AM   #2
Papapishu
我是康
 
Papapishu's Avatar
 
Join Date: Jun. 18th, 2001
Location: void
Posts: 2,043
what's that?
Papapishu is offline   Reply With Quote
Old 30th Dec 2001, 11:28 AM   #3
Mychaeel
 
Join Date: Oct. 3rd, 2001
Location: Frankfurt/Main, Germany
Posts: 3,829
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?
Mychaeel is offline   Reply With Quote
Old 30th Dec 2001, 04:43 PM   #4
BACON.
Registered User
 
BACON.'s Avatar
 
Join Date: Mar. 29th, 2001
Location: Chicago, Illinois
Posts: 21
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?
__________________


If I'm not wasting my time, I'm wasting my time...
BACON. is offline   Reply With Quote
Old 30th Dec 2001, 05:22 PM   #5
usaar33
Un1337
 
usaar33's Avatar
 
Join Date: Mar. 25th, 2000
Location: Unknown
Posts: 808
Re: See...

Quote:
Originally posted by BACON.
...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?
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.
usaar33 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 06:10 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.

Copyright ©1998 - 2012, BeyondUnreal, Inc.
Privacy Policy | Terms of Use
Bandwidth provided by AtomicGamer