(int: &BigInt)
| 147 | // num-bigint now returns Some(inf) for to_f64() in some cases, so just keep that the same for now |
| 148 | #[inline(always)] |
| 149 | pub fn bigint_to_finite_float(int: &BigInt) -> Option<f64> { |
| 150 | int.to_f64().filter(|f| f.is_finite()) |
| 151 | } |
| 152 | |
| 153 | #[cfg(test)] |
| 154 | mod tests { |
no test coverage detected