|
Jared242004 Beginner
Joined: 28 Jul 2004 Posts: 21 Location: Canada
|
Posted: Fri Sep 11, 2009 12:33 am
Avg exp for the day |
@kills 75 @exp 157468 and I want to average it and put into @avg variable
#math avg {@exp/@kills}
Is this close? |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: Fri Sep 11, 2009 12:47 am |
yes, but i would %float one of the numbers, else it will only to integer math
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
Jared242004 Beginner
Joined: 28 Jul 2004 Posts: 21 Location: Canada
|
Posted: Fri Sep 11, 2009 12:59 am |
shalimar wrote: |
yes, but i would %float one of the numbers, else it will only to integer math |
I just read on float in help files can seem to grasp it, could you rewrite the command or tell me where to insert it?
#math avg {@kills/@exp}
Thanks again |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: Fri Sep 11, 2009 5:22 am |
#MATH avg {%float(@kills)/%float(@exp)}
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
|
|