Template:cpp/numeric/dsc midpoint