pub fn sql_float_div(&self, other: &Self) -> Result<Self, Error> {
        Ok(match (self, other) {
            (Self::Number(lhs), Self::Number(rhs)) => try_from_number!(lhs.float_div(*rhs), "{} / {}", lhs, rhs),
            (Self::Interval(dur), Self::Number(d)) => {
                try_from_number_into_interval!(Number::from(*dur).float_div(*d), "interval {} microsecond / {}", dur, d)
            }
            _ => {
                return Err(Error::InvalidArguments(format!("cannot divide {} by {}", self, other)));
            }
        })
    }
/// Divides two values using the rules common among SQL implementations.
Divides two values using the rules common among SQL implementations.
Divides two values using the rules common among SQL implementations .
pub fn sql_float_div(&self, other: &Self) -> Result<Self, Error> {
        Ok(match (self, other) {
            (Self::Number(lhs), Self::Number(rhs)) => try_from_number!(lhs.float_div(*rhs), "{} / {}", lhs, rhs),
            (Self::Interval(dur), Self::Number(d)) => {
                try_from_number_into_interval!(Number::from(*dur).float_div(*d), "interval {} microsecond / {}", dur, d)
            }
            _ => {
                return Err(Error::InvalidArguments(format!("cannot divide {} by {}", self, other)));
            }
        })
    }
pub fn sql_float_div ( & self , other : & Self ) -> Result < Self , Error > { Ok ( match ( self , other ) { ( Self :: Number ( lhs ) , Self :: Number ( rhs ) ) => try_from_number ! ( lhs float_div ( rhs ) " " lhs rhs ) , ( Self :: Interval ( dur ) , Self :: Number ( d ) ) => { try_from_number_into_interval ! ( Number from ( dur ) float_div ( d ) " " dur d ) } _ => { return Err ( Error :: InvalidArguments ( format ! ( " " self other ) ) ) ; } } ) }
Divides two values using the rules common among SQL implementations.
Divides two values using the rules common among SQL implementations .
&self
other
&Self
&self
other
&Self