def main():
    log_whitelist([(inspect.getfile(IntegerNumber), 'to_words')])

    print("<div style=\"border:1px solid black;\">", end="\n\n")
    print("`{bm-disable-all}`", end="\n\n")
    try:
        args = input().split()  # read from stdin
        input1 = IntegerNumber.from_str(args[0])
        res = input1.to_words()  # this will output markdown to stdout
    finally:
        print("</div>", end="\n\n")
        print("`{bm-enable-all}`", end="\n\n")
Esempio n. 2
0
def main():
    log_whitelist([(inspect.getfile(WholeNumber), '__pow__')])

    print("<div style=\"border:1px solid black;\">", end="\n\n")
    print("`{bm-disable-all}`", end="\n\n")
    try:
        args = input().split()  # read from stdin
        input1 = WholeNumber.from_str(args[0])
        input2 = WholeNumber.from_str(args[1])
        res = input1**input2  # this will output markdown to stdout
    finally:
        print("</div>", end="\n\n")
        print("`{bm-enable-all}`", end="\n\n")
Esempio n. 3
0
def main():
    log_whitelist([(inspect.getfile(DecimalNumber), 'round')])

    print("<div style=\"border:1px solid black;\">", end="\n\n")
    print("`{bm-disable-all}`", end="\n\n")
    try:
        args = input().split(None, 2)  # read from stdin
        input1 = DecimalNumber.from_str(args[0])
        input2 = args[1].strip()
        res = input1.round(input2)  # this will output markdown to stdout
    finally:
        print("</div>", end="\n\n")
        print("`{bm-enable-all}`", end="\n\n")