def trunc_decimal(val, places):
    if val is None or val == '':
       return val
    if val < 0:
        roundfactor = "-0.01"
    else:
        roundfactor = "0.01"
    return round_decimal(val=val, places=places, roundfactor=roundfactor, normalize=True)
Shut down server and control threads.
dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/satchmo_utils/numbers.py/trunc_decimal--crossover with--dataset/ETHPy150Open jminardi/RobotBrain/robot_brain/servers/car_server/car_server.py/CarServer.stop