News UnrealEd Files Mods FragBU Liandri Archives
BeyondUnreal Forums

Go Back   BeyondUnreal Forums > Unreal Development > Coding

Reply
 
Thread Tools Display Modes
Old 5th Nov 2001, 02:15 AM   #1
aspie
It's all good baby.
 
aspie's Avatar
 
Join Date: Feb. 24th, 2001
Location: Australia
Posts: 315
Sarcastic Factorial Operator/Function

Does one exist?
__________________
Kicking it, old school style...
aspie is offline   Reply With Quote
Old 6th Nov 2001, 12:45 AM   #2
usaar33
Un1337
 
usaar33's Avatar
 
Join Date: Mar. 25th, 2000
Location: Unknown
Posts: 808
no but here is one:

Code:
static final postoperator int ! ( out int A )
{
  local int b;    
  b=A-1;
  While (b>1){
        A*=b;
        b--;        
  }
A=b;
}
Now just do intvar!;
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 02:57 PM.


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