from math import floor


def get_suffix(exp):
    """ Returns a human-friendly resistor suffix """
    suffix = floor(exp / 3)
    ret = ''
    if suffix == -1:
        ret += 'm'
    elif suffix == 0:
        pass
    elif suffix == 1:
        ret += 'k'
    elif suffix == 2:
        ret += 'M'
    elif suffix == 3:
        ret += 'G'
    else:
        ret += '* 10^{} '.format(exp)

    return ret + 'Ohm'