Use the abs function from std.math.