Help w/ calculating.... - 30/03/15 02:20 AM
this is what I have:
how can I set this to accept percentage?
like: !calc 13% of 1025
Code:
ON *:TEXT:!calc*:#roflmao:{ if ($3 == -) { Set %num $2 - $4 timer1 1 2 msg # %num halt } if ($3 == +) { Set %num $2 + $4 timer1 1 2 msg # %num halt } if ($3 == *) { Set %num $2 * $4 timer1 1 2 msg # %num halt } if ($3 == /) { Set %num $2 / $4 timer1 1 2 msg # %num halt } if ($3 == of) { Set %num $2 ? $4 timer1 1 2 msg # %num halt } }
how can I set this to accept percentage?
like: !calc 13% of 1025