catchorg / catchorg/Catch2

std::complex output precision

Open
#2,876 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
21.5k
Forks
3.5k
Avg merge
3d 16h
Merged PRs (30d)
2

Description

**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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.