pub fn sql_rem(&self, other: &Self) -> Result<Self, Error> {
        if let (Self::Number(lhs), Self::Number(rhs)) = (self, other) {
            Ok(try_from_number!(lhs.rem(*rhs), "mod({}, {})", lhs, rhs))
        } else {
            Err(Error::InvalidArguments(format!(
                "cannot compute remainder of {} by {}",
                self, other
            )))
        }
    }
/// Computes the remainder when dividing two values using the rules common among SQL implementations.
Computes the remainder when dividing two values using the rules common among SQL implementations.
Computes the remainder when dividing two values using the rules common among SQL implementations .
pub fn sql_rem(&self, other: &Self) -> Result<Self, Error> {
        if let (Self::Number(lhs), Self::Number(rhs)) = (self, other) {
            Ok(try_from_number!(lhs.rem(*rhs), "mod({}, {})", lhs, rhs))
        } else {
            Err(Error::InvalidArguments(format!(
                "cannot compute remainder of {} by {}",
                self, other
            )))
        }
    }
pub fn sql_rem ( & self , other : & Self ) -> Result < Self , Error > { if let ( Self :: Number ( lhs ) , Self :: Number ( rhs ) ) = ( self , other ) { Ok ( try_from_number ! ( lhs rem ( rhs ) " " lhs rhs ) ) } else { Err ( Error :: InvalidArguments ( format ! ( " " self other ) ) ) } }
Computes the remainder when dividing two values using the rules common among SQL implementations.
Computes the remainder when dividing two values using the rules common among SQL implementations .
&self
other
&Self
&self
other
&Self