#NEWLINE# def mpf_neg( s , prec = None , rnd = round_fast ) : #NEWLINE# #INDENT# 'Negate a raw mpf (return -s), rounding the result to the\n    specified precision. The prec argument can be omitted to do the\n    operation exactly.' #NEWLINE# ( sign , man , exp , bc ) = s #NEWLINE# if ( not man ) : #NEWLINE# #INDENT# if exp : #NEWLINE# #INDENT# if ( s == finf ) : #NEWLINE# #INDENT# return fninf #NEWLINE# #UNINDENT# if ( s == fninf ) : #NEWLINE# #INDENT# return finf #NEWLINE# #UNINDENT# #UNINDENT# return s #NEWLINE# #UNINDENT# if ( not prec ) : #NEWLINE# #INDENT# return ( ( 1 - sign ) , man , exp , bc ) #NEWLINE# #UNINDENT# return normalize1 ( ( 1 - sign ) , man , exp , bc , prec , rnd )