MCPcopy Create free account
hub / github.com/apache/mesos / convertToFixed

Function convertToFixed

src/common/values.cpp:56–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54// the expense of sacrificing some precision.
55
56static long long convertToFixed(double floatValue)
57{
58 return std::llround(floatValue * 1000);
59}
60
61
62static double convertToFloating(long long fixedValue)

Callers 6

values.cppFile · 0.70
operator==Function · 0.70
operator<Function · 0.70
operator<=Function · 0.70
operator>Function · 0.70
operator>=Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected