MCPcopy Create free account
hub / github.com/apache/datafusion / to_parts

Method to_parts

datafusion/spark/src/function/string/format_string.rs:2394–2400  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

2392 const SCALEUP: f64 = (1_i64 << Self::SCALEUP_POWER) as f64;
2393
2394 fn to_parts(&self) -> (bool, u16, u64) {
2395 let bits = self.to_bits();
2396 let sign: bool = (bits >> 63) == 1;
2397 let exponent = ((bits >> 52) & 0x7FF) as u16;
2398 let mantissa = bits & 0x000F_FFFF_FFFF_FFFF;
2399 (sign, exponent, mantissa)
2400 }
2401}
2402
2403/// Inserts thousands separators (`,`) into the integer part of a numeric string.

Callers 1

format_hex_floatMethod · 0.80

Calls 1

to_bitsMethod · 0.80

Tested by

no test coverage detected