MCPcopy Create free account
hub / github.com/andreasfertig/programming-with-cpp20 / Use

Function Use

05.12-stdFmtFloatFormatting0/main.cpp:8–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include <string>
7
8std::string Use()
9{
10 const double pi = 3.1400;
11 const double num = 2.0;
12
13 std::string s = std::format("pi {}, num {}", pi, num);
14
15 return s;
16}
17
18int main()
19{

Callers 1

mainFunction · 0.70

Calls 1

formatFunction · 0.50

Tested by

no test coverage detected