Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andreasfertig/programming-with-cpp20
/ main
Function
main
10.02-bitCastFloatToInt1/main.cpp:11–15 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
9
# include <cstdint>
10
11
int main()
12
{
13
const float pi = 3.14f;
14
const uint32_t pii = std::bit_cast<uint32_t>(pi);
15
}
16
#else
17
int main()
18
{
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected