def away_from_zero_round(value, ndigits=<NUM_LIT:0>):
if sys.version_info[<NUM_LIT:0>] >= <NUM_LIT:3>:<EOL><INDENT>p = <NUM_LIT:10>**ndigits<EOL>return float(math.floor((value * p) + math.copysign(<NUM_LIT:0.5>, value))) / p<EOL><DEDENT>else:<EOL><INDENT>return round(value, ndigits)<EOL><DEDENT>
Round half-way away from zero.

    Python2's round() method.