MCPcopy Create free account
hub / github.com/d99kris/rapidcsv / ToVal

Function ToVal

tests/test063.cpp:9–12  ·  view source on GitHub ↗

Conversion function for int data to be converted to fixed-point two decimal numbers

Source from the content-addressed store, hash-verified

7
8// Conversion function for int data to be converted to fixed-point two decimal numbers
9void ToVal(const std::string& pStr, int& pVal)
10{
11 pVal = static_cast<int>(roundf(100.0f * std::stof(pStr)));
12}
13
14struct Struct
15{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected