Calculator

By Del_Felesif on Apr 15, 2005

Just a calculation where the user uses !calculate <*|/|+|->

on *:text:!calculate*:#: {
  /msg $chan $calc( $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 )
}

Comments

Sign in to comment.
enexif   -  Apr 21, 2005

Del, what kind of snippit is this (This is Zach from OQL)... Dude!

 Respond  
Cocaine   -  Apr 16, 2005

egh nvm.

 Respond  
Cocaine   -  Apr 16, 2005

then what about $2-$30 ?

 Respond  
Yoinx   -  Apr 15, 2005

thats a 0 in multiplication or division sorry.

 Respond  
Yoinx   -  Apr 15, 2005

Umm, what if there is only 2 numbers? with the string, you should always get 0 as I believe $null turns to 0 in a calc.

 Respond  
chaplja   -  Apr 15, 2005

I think it\'s better to use $calc( $2- ) instead of ( $2 $3 $4 .. $n )

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.