(s)
return (-1) ** sign
Return -1, 0, or 1 (as a Python int, not a raw mpf) depending on
    whether s is negative, zero, or positive. (Nan is taken to give 0.)
Return -1, 0, or 1 (as a Python int, not a raw mpf) depending on
    whether s is negative, zero, or positive. (Nan is taken to give 0.)
Return - 1 0 or 1 ( as a Python int not a raw mpf ) depending on whether s is negative zero or positive . ( Nan is taken to give 0 . )
def mpf_sign(s):
    """Return -1, 0, or 1 (as a Python int, not a raw mpf) depending on
    whether s is negative, zero, or positive. (Nan is taken to give 0.)"""
    sign, man, exp, bc = s
    if not man:
        if s == finf: return 1
        if s == fninf: return -1
        return 0
    return (-1) ** sign
def mpf_sign ( s ) : sign , man , exp , bc = s if not man : if s == finf : return 1 if s == fninf : return - 1 return 0 return ( - 1 ) ** sign