Esempio n. 1
0
def mul(message, a, b):
    result = str(float(a) * float(b))
    reply = '{} x {} = {}'.format(a, b, result)
    message.reply(reply)
Esempio n. 2
0
def sub(message, a, b):
    result = str(float(a) - (float(b)))
    reply = '{} - {} = {}'.format(a, b, result)
    message.reply(reply)
Esempio n. 3
0
def power(message, a, b):
    result = str(float(a) ** float(b))
    reply = '{} ** {} = {}'.format(a, b, result)
    message.reply(reply)
Esempio n. 4
0
def div(message, a, b):
    result = str(float(a) / float(b))
    reply = '{} / {} = {}'.format(a, b, result)
    message.reply(reply)
Esempio n. 5
0
def add(message, a, b):
    print a, b
    result = str(float(a) + float(b))
    reply = '{} + {} = {}'.format(a, b, result)
    message.reply(reply)
Esempio n. 6
0
def power(message, a, b):
    result = str(float(a)**float(b))
    reply = '{} ** {} = {}'.format(a, b, result)
    message.reply(reply)
Esempio n. 7
0
def sub(message, a, b):
    result = str(float(a) - (float(b)))
    reply = '{} - {} = {}'.format(a, b, result)
    message.reply(reply)
Esempio n. 8
0
def add(message, a, b):
    print a, b
    result = str(float(a) + float(b))
    reply = '{} + {} = {}'.format(a, b, result)
    message.reply(reply)
Esempio n. 9
0
def div(message, a, b):
    result = str(float(a) / float(b))
    reply = '{} / {} = {}'.format(a, b, result)
    message.reply(reply)
Esempio n. 10
0
def mul(message, a, b):
    result = str(float(a) * float(b))
    reply = '{} x {} = {}'.format(a, b, result)
    message.reply(reply)