예제 #1
0
async def divide_exactly(request):
    params = gfp(request, xmb.divide_exactly)
    reply = CommonReply()
    result = xmb.divide_exactly(**params)
    reply.result = result[0]
    reply.remainder = result[1]
    return reply.json()
예제 #2
0
async def radix_convert(request):
    params = gfp(request, xmb.radix_convert)
    reply = CommonReply()
    reply.result = xmb.radix_convert(**params)
    return reply.json()
예제 #3
0
async def square(request):
    params = gfp(request, xmb.square)
    reply = CommonReply()
    reply.result = xmb.square(**params)
    return reply.json()
예제 #4
0
async def factorial(request):
    params = gfp(request, xmb.factorial)
    reply = CommonReply()
    reply.result = xmb.factorial(**params)
    return reply.json()
예제 #5
0
async def divide(request):
    params = gfp(request, xmb.divide)
    reply = CommonReply()
    reply.result = xmb.divide(**params)
    return reply.json()
예제 #6
0
async def multiply(request):
    params = gfp(request, xmb.multiply)
    reply = CommonReply()
    reply.result = xmb.multiply(**params)
    return reply.json()
예제 #7
0
async def plus(request):
    params = gfp(request, xmb.plus)
    reply = CommonReply()
    reply.result = xmb.plus(**params)
    return reply.json()