MCPcopy Create free account
hub / github.com/apache/arrow / FormatFloat16Value

Function FormatFloat16Value

cpp/src/parquet/types.cc:175–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175std::string FormatFloat16Value(::std::string_view val) {
176 std::stringstream result;
177 auto float16 = ::arrow::util::Float16::FromLittleEndian(
178 reinterpret_cast<const uint8_t*>(val.data()));
179 result << float16.ToFloat();
180 return result.str();
181}
182
183} // namespace
184

Callers 1

FormatStatValueFunction · 0.85

Calls 4

strMethod · 0.80
FromLittleEndianFunction · 0.50
dataMethod · 0.45
ToFloatMethod · 0.45

Tested by

no test coverage detected