Calculating Absolute Values in Python, With Examples - LinuxScrew
Absolute values are most often used when dealing with distances (mapping) and physics (simulation, games) calculations. For example, when calculation speed or direction, you measure that speed or direction in relation to a fixed point. The movement to the right may be considered positive, and movement to the left negative.