alamb commented on code in PR #7986:
URL: https://github.com/apache/arrow-rs/pull/7986#discussion_r2237832490
##########
arrow-buffer/src/bigint/mod.rs:
##########
@@ -821,6 +821,20 @@ impl ToPrimitive for i256 {
}
}
+ fn to_f64(&self) -> Option<f64> {
+ let mag = if let Some(u) = self.checked_abs() {
+ let (low, high) = u.to_parts();
+ (high as f64) * 2_f64.powi(128) + (low as f64)
Review Comment:
Tracking in
- https://github.com/apache/arrow-rs/issues/8013
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]