public static double Abs(this double v) => v < 0d ? -v : v; public static float Abs(this float v) => v < 0f ? -v : v;