fn divide_ints(n1: i32, n2: i32) -> Value {
    match n2.checked_div(n1) {
        Some(n3) => {
            Value::Int(n3)
        }
        None => {
            let n2_bigint = BigInt::from_i32(n2).unwrap();
            Value::BigInt(n2_bigint / n1)
        }
    }
}
/// Divide one integer by anotherand return the result value.  Promote
/// to bigint if the value cannot be stored in an i32.
Divide one integer by anotherand return the result value.  Promote
to bigint if the value cannot be stored in an i32.
Divide one integer by anotherand return the result value . Promote to bigint if the value cannot be stored in an i32 .
fn divide_ints(n1: i32, n2: i32) -> Value {
    match n2.checked_div(n1) {
        Some(n3) => {
            Value::Int(n3)
        }
        None => {
            let n2_bigint = BigInt::from_i32(n2).unwrap();
            Value::BigInt(n2_bigint / n1)
        }
    }
}
fn divide_ints ( n1 : i32 , n2 : i32 ) -> Value { match n2 . checked_div ( n1 ) { Some ( n3 ) => { Value :: Int ( n3 ) } None => { let n2_bigint = BigInt :: from_i32 ( n2 ) . unwrap ( ) ; Value :: BigInt ( n2_bigint / n1 ) } } }
Divide one integer by anotherand return the result value.
Divide one integer by anotherand return the result value .
n1
i32
n2
i32