#2876·Catch2

std::complex output precision

Author: SvalorzenCreated Jun 17, 2024Updated Sep 10, 2026

Description As far as I understand, the class StringMaker is the one that controls how variables are printed to screen. float and double have their own specializations that expose a public precision which can be set by the user. std::complex has no such specialization, so it always gets printed with a default precision.

I'd like to be able to specify the precision for complex numbers as well.