/// Rounds `self` to the closest integer toward zero.
///
/// | Domain | Range |
/// | ------ | ----- |
/// | $\R$   | $\Z$  |
///
/// # Examples
///
/// ```
/// use inari::*;
/// assert_eq!(const_interval!(0.2, 1.2).trunc(), const_interval!(0.0, 1.0));
/// assert_eq!(const_interval!(0.8, 1.8).trunc(), const_interval!(0.0, 1.0));
/// assert_eq!(const_interval!(-1.2, -0.2).trunc(), const_interval!(-1.0, 0.0));
/// assert_eq!(const_interval!(-1.8, -0.8).trunc(), const_interval!(-1.0, 0.0));
/// assert_eq!(Interval::EMPTY.trunc(), Interval::EMPTY);
/// assert_eq!(Interval::ENTIRE.trunc(), Interval::ENTIRE);
/// ```
///
/// See also: [`Interval::ceil`], [`Interval::floor`].
Rounds `self` to the closest integer toward zero.
Rounds ` self ` to the closest integer toward zero .
pub fn trunc(self) -> Self {
        Self {
            rep: trunc(self.rep),
        }
    }
pub fn trunc ( self ) -> Self { Self { rep : trunc ( self . rep ) , } }
Rounds `self` to the closest integer toward zero.
Rounds ` self ` to the closest integer toward zero .
self
examples


See also: [`Interval::ceil`], [`Interval::floor`].
See also : [ ` Interval :: ceil ` ] [ ` Interval :: floor ` ] .