Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
8
std::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
18
int main()
19
{
Callers
1
main
Function · 0.70
Calls
1
format
Function · 0.50
Tested by
no test coverage detected