feat: EQUIV{...} replaced with [...] in the text output of common units

This commit is contained in:
Mateusz Pusz
2025-06-18 08:53:46 +02:00
parent 088fb3ca9f
commit 6361daa76f
3 changed files with 11 additions and 11 deletions

View File

@ -304,10 +304,10 @@ std::cout << 1 * rad + 1 * deg << "\n";
prints:
```text
40771 EQUIV{[1/25146 mi], [1/15625 km]}
108167 EQUIV{[1/50292 mi], [1/57875 nmi]}
23 EQUIV{[1/5 km/h], [1/18 m/s]}
183.142 EQUIV{[1/π°], [1/180 rad]}
40771 [(1/25146 mi), (1/15625 km)]
108167 [(1/50292 mi), (1/57875 nmi)]
23 [(1/5 km/h), (1/18 m/s)]
183.142 [(1/π°), (1/180 rad)]
```
Thanks to the above, it might be easier for the user to reason about the magnitude of the resulting