Retrieve inner int value:
(obj: &PyObject)
| 782 | |
| 783 | // Retrieve inner int value: |
| 784 | pub(crate) fn get_value(obj: &PyObject) -> &BigInt { |
| 785 | &obj.downcast_ref::<PyInt>().unwrap().value |
| 786 | } |
| 787 | |
| 788 | pub fn try_to_float(int: &BigInt, vm: &VirtualMachine) -> PyResult<f64> { |
| 789 | bigint_to_finite_float(int) |