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

Method ToDouble

cpp/src/arrow/util/float16.cc:213–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213double Float16::ToDouble() const {
214 const uint64_t d_bits = BinaryConverter<uint64_t>::FromBinary16(bits_);
215 return SafeCopy<double>(d_bits);
216}
217
218Float16 Float16::FromDouble(double d) {
219 const uint64_t d_bits = SafeCopy<uint64_t>(d);

Callers 1

PyFloat_FromHalfFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected